This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]