[U-Boot] [RFC] [PATCH V2] arm: arm926ejs: use ELF relocations

Albert ARIBAUD albert.aribaud at free.fr
Tue Oct 5 12:11:34 CEST 2010


Le 05/10/2010 11:39, Reinhard Meyer a écrit :
>> for (p = start; p<  end; p += 8)
>> 	work;
>> and not
>
> Give me some time, and I will complete this loop to do
> relocation in "C".
>
> Reinhard

Be careful, though, that you need a way to obtain the 'source' address 
of the .rel.dyn start and end and of the .dynsym start, plus the offset 
from 'source' to 'target'; these may not be easy to compute in C

I think the right balance might be to have an ASM framework to prepare 
these four values and pass them to the C relocation routine.

Note that you may also have to make sure the routine itself is 
insensitive to relocation too.

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list