diff options
author | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2013-10-11 17:46:59 +0200 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2014-04-20 13:16:42 +0200 |
commit | 79fd7e649e287228a1445820a72f7dd33baedb96 (patch) | |
tree | 1b7ef3ccca332f88438c2b3bb52d8b4962951909 /arch/mips/config.mk | |
parent | b149c4c399b111cec1ff7505ca9fabbeeb4fe394 (diff) | |
download | u-boot-imx-79fd7e649e287228a1445820a72f7dd33baedb96.zip u-boot-imx-79fd7e649e287228a1445820a72f7dd33baedb96.tar.gz u-boot-imx-79fd7e649e287228a1445820a72f7dd33baedb96.tar.bz2 |
MIPS: always keep all sections in u-boot ELF binary.
Always keep all sections in u-boot ELF binary. Move all unneeded
sections after _end to avoid allocating space in the final binary.
Also remove .deadcode section which is now obsolete.
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'arch/mips/config.mk')
-rw-r--r-- | arch/mips/config.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/config.mk b/arch/mips/config.mk index 1899f51..42a8062 100644 --- a/arch/mips/config.mk +++ b/arch/mips/config.mk @@ -52,4 +52,5 @@ PLATFORM_CPPFLAGS += -msoft-float PLATFORM_LDFLAGS += -G 0 -static -n -nostdlib $(ENDIANNESS) PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections LDFLAGS_FINAL += --gc-sections -pie -OBJCOPYFLAGS += --remove-section=.dynsym +OBJCOPYFLAGS += -j .text -j .rodata -j .data -j .got +OBJCOPYFLAGS += -j .u_boot_list -j .rel.dyn |