summaryrefslogtreecommitdiff
path: root/arch/mips/config.mk
diff options
context:
space:
mode:
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2013-10-11 15:46:59 (GMT)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2014-04-20 11:16:42 (GMT)
commit79fd7e649e287228a1445820a72f7dd33baedb96 (patch)
tree1b7ef3ccca332f88438c2b3bb52d8b4962951909 /arch/mips/config.mk
parentb149c4c399b111cec1ff7505ca9fabbeeb4fe394 (diff)
downloadu-boot-fsl-qoriq-79fd7e649e287228a1445820a72f7dd33baedb96.tar.xz
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.mk3
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