From: Haiying Wang Date: Wed, 3 Nov 2010 15:07:30 -0400 Subject: [U-Boot] patch for gc-sections Message-ID: <1288811250.1820.96.camel@haiying-laptop> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Peter, Do you have any idea on why your commit: " commit fbe53f59bd40b3b1ab66dc98859e26589d64d1b7 Author: Peter Tyser 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