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. _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

