how does ld interpret ELF R_PPC_REL32?

Alan Modra amodra@bigpond.net.au
Fri Oct 21 01:59:00 GMT 2005


On Thu, Oct 20, 2005 at 05:27:02PM -0700, ddunkle (sent by Nabble.com) wrote:
> 
> It looks to me like the P term is actually computed this way:
> 
> P = run time virtual address of the section containing the relocation
>     + 
>     r_offset of the relocation record
> 
> This was taken from a particular O/S's dynamic relocating loader, and it makes all of the calculations work.
> 
> Does this seem correct?

Yes.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list