[U-Boot] patch for gc-sections

Haiying Wang Haiying.Wang at freescale.com
Wed Nov 10 20:25:50 CET 2010


On Thu, 2010-11-04 at 14:22 -0400, Haiying Wang wrote:
> On Thu, 2010-11-04 at 09:36 -0700, Peter Tyser wrote:
> > Glad to hear.  I'll submit an official patch shortly.  Just to make
> > sure, have you tried running one of the nand-spl images after the
> > patch
> > I sent yesterday?  It'd be good to get confirmation that the
> > -gc-sections doesn't have any accidental side effects as I wasn't able
> > to test it.
> Because of the second bug, I can not test it based on the top of the
> uboot tree. I just use 2010.06 version plus your two patches, and run
> the nand-spl image on MPC8569MDS board. Only "NAND boot... transfering
> control" is printed out in the terminal. It means the final u-boot image
> doesn't work.
> 
> Then I make changes to u-boot-nand.lds and u-boot-nand_spl.lds,
> following the changes you made for u-boot.lds, I get the first u-boot
> line "U-Boot 2010.06..." printed out which means the final u-boot image
> can work a little bit. But nothing else is showed up in terminal.
> 
> Do you have any idea on how to make changes to u-boot-nand/_spl.lds?

I figured out the problem now. The bootpg was removed by --gc-section as
well, so I need to add KEEP for it in u-boot-nand.lds. 

Patch will come out, I tested on MPC8569MDS board against top of the
tree.

Haiying





More information about the U-Boot mailing list