[U-Boot] patch for gc-sections
Haiying Wang
Haiying.Wang at freescale.com
Wed Nov 3 20:07:30 CET 2010
Peter,
Do you have any idea on why your commit:
"
commit fbe53f59bd40b3b1ab66dc98859e26589d64d1b7
Author: Peter Tyser <ptyser at xes-inc.com>
Date: Wed Sep 29 14:05:56 2010 -0500
85xx: Use gc-sections to reduce image size
which made change to :
"
--- a/arch/powerpc/cpu/mpc85xx/config.mk
+++ b/arch/powerpc/cpu/mpc85xx/config.mk
@@ -25,6 +25,10 @@ PLATFORM_RELFLAGS += -fPIC -meabi
PLATFORM_CPPFLAGS += -ffixed-r2 -Wa,-me500 -msoft-float -mno-string
+# Enable gc-sections to enable generation of smaller images.
+PLATFORM_LDFLAGS += --gc-sections
+PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
"
makes the u-boot-spl.bin, u-boot-spl-16k.bin to 0 bytes? At least I
tried to build MPC8536DS_NAND_config, MPC8569MDS_NAND_config,
P1021MDS_NAND_config, and got 0 bytes of those nand_spl binaries for
them all.
Thanks.
Haiying
More information about the U-Boot
mailing list