From 79fd7e649e287228a1445820a72f7dd33baedb96 Mon Sep 17 00:00:00 2001 From: Daniel Schwierzeck Date: Fri, 11 Oct 2013 17:46:59 +0200 Subject: 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 --- arch/mips/config.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'arch/mips/config.mk') 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 -- cgit v1.1