public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] patch for gc-sections
@ 2010-11-03 19:07 Haiying Wang
  2010-11-03 20:38 ` Peter Tyser
  0 siblings, 1 reply; 8+ messages in thread
From: Haiying Wang @ 2010-11-03 19:07 UTC (permalink / raw)
  To: u-boot

Peter,

Do you have any idea on why your commit:
"
commit fbe53f59bd40b3b1ab66dc98859e26589d64d1b7
Author: Peter Tyser <ptyser@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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-11-10 19:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-03 19:07 [U-Boot] patch for gc-sections Haiying Wang
2010-11-03 20:38 ` Peter Tyser
2010-11-04 14:19   ` Haiying Wang
2010-11-04 15:45     ` Peter Tyser
2010-11-04 16:16       ` Haiying Wang
2010-11-04 16:36         ` Peter Tyser
2010-11-04 18:22           ` Haiying Wang
2010-11-10 19:25             ` Haiying Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox