[U-Boot] [PATCH] mpc83xx: Add -fpic relocation support

Joakim Tjernlund joakim.tjernlund at transmode.se
Tue Oct 12 21:51:44 CEST 2010


Scott Wood <scottwood at freescale.com> wrote on 2010/10/12 21:20:26:
> 
> On Tue, 12 Oct 2010 21:13:19 +0200
> Joakim Tjernlund <joakim.tjernlund at transmode.se> wrote:
> 
> > Kim Phillips <kim.phillips at freescale.com> wrote on 2010/10/12 
20:19:38:
> > > 
> > > On Tue, 12 Oct 2010 19:41:56 +0200
> > > Joakim Tjernlund <joakim.tjernlund at transmode.se> wrote:
> > > 
> > > > Kim Phillips <kim.phillips at freescale.com> wrote on 2010/10/12 
> > 19:31:25:
> > > > > that moderate size increase in start.S breaks nand builds:
> > > 
> > > > One thing I wonder about: How come NAND_SPL need GOT2 relocs
> > > > but no FIXUPs? I figured either none or both.
> > > 
> > > I don't know; apparently FIXUPs aren't needed?
> > 
> > Fixups are needed unless your link address == load address.
> > I guess you link at the load address? If so
> > you should not need to relocate the GOT either.
> 
> We do need to relocate with NAND SPL.  We start in the NAND buffer,
> but we have to move to RAM to free up the buffer for loading the rest
> of U-Boot.

Sure, but do you move to a specific RAM address and is
it the same as your link address?


More information about the U-Boot mailing list