]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
efi_loader: helloworld.c: Reduce file size
authorAlexander Graf <agraf@suse.de>
Mon, 11 Dec 2017 08:45:30 +0000 (09:45 +0100)
committerAlexander Graf <agraf@suse.de>
Sat, 16 Dec 2017 21:51:19 +0000 (22:51 +0100)
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>
arch/arm/lib/elf_arm_efi.lds

index 59f66a1d4ab1dabfd62f28f6ce3714ea1e007b00..15c9c5c6722a4f3d9b13799affbc9e641be2be99 100644 (file)
@@ -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) }
 }