[U-Boot] [PATCH] NAND: Allow nand_ids and nand_bbt to be compiled in SPL

Scott Wood scottwood at freescale.com
Mon Jan 9 22:27:44 CET 2012


On 01/09/2012 03:21 PM, Mike Frysinger wrote:
> On Monday 09 January 2012 14:41:07 Scott Wood wrote:
>> Unless/until the toolchain can properly GC anonymous strings, I think
>> finer-grained conditional compilation is the way to go.
> 
> i think we should use GC when it works (we've found 1 case so far where it 
> doesn't), and add fine grained compilation when it doesn't (with a note with 
> expected working versions).

Anonymous strings are hardly a rare occurance.  Plus, doing it on a case
by cases invites breakage from people who don't/can't test the SPLs that
are affected, when they add code that moves a certain file from being
not-problematic to problematic.

> i think this is a bug in the linker and have been 
> trying to make a reduced test case that i can post to the GNU binutils peeps.

If and when they fix it, and the updated toolchains are in sufficiently
wide use that we can stop supporting the old ones (at least for small
SPL targets), we can revisit the decision.

-Scott



More information about the U-Boot mailing list