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

Albert ARIBAUD
2010-10-05T10:11:34Z

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.