diff options
author | Peter Tyser <ptyser@xes-inc.com> | 2010-09-29 14:05:55 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2010-10-20 02:38:41 -0500 |
commit | 68337fb5f6f811cd4485ec14c469551f874d535b (patch) | |
tree | 936192bd13c7d19c2c914045a935f966815c22ec /arch/powerpc/cpu/mpc86xx/config.mk | |
parent | bd9715e3dbf422bf0404e8b2a262620dbfac2e7f (diff) | |
download | blackbird-obmc-uboot-68337fb5f6f811cd4485ec14c469551f874d535b.tar.gz blackbird-obmc-uboot-68337fb5f6f811cd4485ec14c469551f874d535b.zip |
86xx: Use gc-sections to reduce image size
On an XPedite5170 over 11KBytes were saved:
Before:
text data bss dec hex filename
319488 28700 33204 381392 5d1d0 ./u-boot
After:
text data bss dec hex filename
307663 29144 33204 370011 5a55b ./u-boot
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/cpu/mpc86xx/config.mk')
-rw-r--r-- | arch/powerpc/cpu/mpc86xx/config.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc86xx/config.mk b/arch/powerpc/cpu/mpc86xx/config.mk index 7fae7e4286..bce0fb374b 100644 --- a/arch/powerpc/cpu/mpc86xx/config.mk +++ b/arch/powerpc/cpu/mpc86xx/config.mk @@ -26,5 +26,9 @@ PLATFORM_RELFLAGS += -fPIC -meabi PLATFORM_CPPFLAGS += -ffixed-r2 -mstring PLATFORM_CPPFLAGS += -maltivec -mabi=altivec -msoft-float +# Enable gc-sections to enable generation of smaller images. +PLATFORM_LDFLAGS += --gc-sections +PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections + # Use default linker script. Board port can override in board/*/config.mk LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/mpc86xx/u-boot.lds |