[U-Boot-Users] Changing u-boot relocation scheme

kenneth johansson kenneth at southpole.se
Fri Jul 25 13:55:58 CEST 2008


On Fri, 2008-07-25 at 11:10 +0200, Haavard Skinnemoen wrote:
> On Fri, 25 Jul 2008 06:28:16 +0200
> Wolfgang Denk <wd at denx.de> wrote:
> 
> > In message <20080724185734.6d79c419 at hskinnemo-gx745.norway.atmel.com> you wrote:
> > > We could build u-boot as a shared library I guess, but that feels a bit
> > > weird...
> > 
> > Shared? Shared by what?
> 
> An ELF shared library has the dynamic relocations we need. So if we
> build u-boot as an .so file, it should work in theory on most
> architectures.
> 
> Haavard
> 

well the elf binary of u-boot obviously has everything we need
regardless of what options it was compiled with. If we had a full linker
at runtime we could just do a relink to whatever address we wanted. 

It sounds a bit easier to just loop over a list of pointers and change
the values than to implement a complete linker but maybe that is just
me.








More information about the U-Boot mailing list