[U-Boot] [PATCH 2/2] PowerPC, nand_spl: Add relocation support for -fpic

Scott Wood scottwood at freescale.com
Fri Dec 10 21:34:59 CET 2010


On Thu, 9 Dec 2010 21:30:16 +0100
Joakim Tjernlund <joakim.tjernlund at transmode.se> wrote:

> > > If not, is there anything special I need to test it (specific
> > > toolchain?) besides these two patches?
> >
> > No, not yet. The real benefit comes in later patches. Just
> > makes sure it works as before.

I applied those two patches on top of next, and it boots OK.

I added -fpic to PLATFORM_RELFLAGS, still boots OK.

> Well, one thing should work now. nand_spl does not use fixups
> so you should be able to remove -mrelocatable and just use -fpic.

If I remove -mrelocatable (with or without -fpic in place) I get
ERROR: Your compiler doesn't generate .fixup sections!
       Upgrade to a recent toolchain.

I see this with GCC 4.3.2 and GCC 4.5.1.

-Scott



More information about the U-Boot mailing list