[U-Boot] [PATCH] relocation: Do not relocate NULL pointers.

Joakim Tjernlund joakim.tjernlund at transmode.se
Tue Oct 6 12:56:47 CEST 2009


Wolfgang Denk <wd at denx.de> wrote on 06/10/2009 10:58:53:
>
> Dear Peter Tyser,
>
> In message <1254784811.24664.968.camel at localhost.localdomain> you wrote:
> >
> > > 1. is just a small fix the the existing asm reloc functions. Pretty much
> > >    ready but needs some linker tweeks it seems. No idea if other
> > >    boards than 85xx also needs a linker tweak or not.
> >
> > It looks like 85xx is the only arch that needed linker script tweaks.  I
> > just submitted some patches a bit ago.
>
> I think this code is too complex. Eventually we could hard-wire
> something like ". = 0x40000" or similar for a fixed location of the
> (pre-relocation) bss on all 85xx/86xx systems.
>
> > > 2. is 1 in C and some common supporting asm for ppc. Any idea were
> > >    to put common asm files for ppc? I was hoping I could get away with
> > >    just 83xx and the rest could be done later by interested parties?
> >
> > Assuming the 85xx link script changes are accepted, what's the gameplan
> > now?  #1 is pretty trivial (the original patch that spawned this thread
> > with slight tweaks) and should be easy to get in this merge window.
> > That would get us to the point that relocation is fully functional,
> > including non-relocation of NULL pointers.
>
> I think this is a nice and realistic goal for the current release.

Yes, then it works and the C-version can come on top.

>
> > #2 looks more involved and prone to errors as it requires some shuffling
> > of registers in assembly for all architectures.  Are we aiming for
> > getting #2 across all architectures in this window?  I should be able to
> > implement and test it on 85xx, 86xx, and 44x, and Jocke's tested on
> > 83xx.  I don't think I could do the rest of the arches by the end of
> > this week though.  Any other takers?  Save it for the next merge window?
>
> I guess this is for next version.

Yes, I am getting behind due to some 8xx MMU problems. If I am really lucky I
may be able to do 83xx only, but my code base is a mess ATM :(

>
>
> Um... jut to be sure - I understand that by "all architectures" above
> you actually mean "all Power architecture CPU families",  i.  e.  you
> don't include the needed cleanup for ARM, MIPs, etc. here (yet) ?

I sure hope so :)



More information about the U-Boot mailing list