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

Joakim Tjernlund joakim.tjernlund at transmode.se
Thu Dec 9 21:30:16 CET 2010


>
>
> >
> > On Fri, 3 Dec 2010 10:30:38 -0600
> > "Joakim Tjernlund" <Joakim.Tjernlund at transmode.se> wrote:
> >
> > > By rearranging the linker script we get support for
> > > relocation of -fpic for free.
> > > Move __got2_entries outside _GOT2_TABLE_ defining scope
> > > matching the rest of PowerPC
> > >
> > > Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
> > > ---
> > >  nand_spl/board/freescale/mpc8313erdb/u-boot.lds |    4 +++-
> > >  nand_spl/board/freescale/mpc8315erdb/u-boot.lds |    4 +++-
> > >  nand_spl/board/sheldon/simpc8313/u-boot.lds     |    4 +++-
> > >  3 files changed, 9 insertions(+), 3 deletions(-)
> > >
> >
> >
> > Were you able to boot test it on at least one of the boards?
>
> nope, I don't have any of them. Just my own 8321 board.
>
> >
> > If so:
> > Acked-by: Scott Wood <scottwood at freescale.com>
> > if Kim wants to take both of them.
> >
> > 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.

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



More information about the U-Boot mailing list