diff options
author | Alexander Graf <agraf@suse.de> | 2017-12-11 09:45:30 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2017-12-16 22:51:19 +0100 |
commit | 52a250afa53215190e1714ee2c858ab0bbfa0953 (patch) | |
tree | 77522a5d4262f1d9f4061a20582dcef0742df455 /arch | |
parent | ae67dca5e61867cda886bdd2943709a19c45d76a (diff) | |
download | u-boot-52a250afa53215190e1714ee2c858ab0bbfa0953.tar.gz u-boot-52a250afa53215190e1714ee2c858ab0bbfa0953.tar.xz u-boot-52a250afa53215190e1714ee2c858ab0bbfa0953.zip |
efi_loader: helloworld.c: Reduce file size
The efi linker script includes sections needed for the dynamic linker.
However, in our EFI application environment we don't have a dynamic linker.
So let's remove them. That way we save on 4k padding and reduce the file
size of the hello world efi binary from ~4k to ~1k.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/lib/elf_arm_efi.lds | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/arm/lib/elf_arm_efi.lds b/arch/arm/lib/elf_arm_efi.lds index 59f66a1d4a..15c9c5c672 100644 --- a/arch/arm/lib/elf_arm_efi.lds +++ b/arch/arm/lib/elf_arm_efi.lds @@ -55,16 +55,13 @@ SECTIONS .rel.data : { *(.rel.data) *(.rel.data*) } _data_size = . - _etext; - . = ALIGN(4096); - .dynsym : { *(.dynsym) } - . = ALIGN(4096); - .dynstr : { *(.dynstr) } - . = ALIGN(4096); - .note.gnu.build-id : { *(.note.gnu.build-id) } /DISCARD/ : { *(.rel.reloc) *(.eh_frame) *(.note.GNU-stack) + *(.dynsym) + *(.dynstr) + *(.note.gnu.build-id) + *(.comment) } - .comment 0 : { *(.comment) } } |