This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: how does ld interpret ELF R_PPC_REL32?
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