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?


So in summary the actual calculation is this then:

S = run time virtual address of the symbol in the final linked image; for a section symbol this is the run time virtual address of the section of the input file to the link

A = addend in relocation record

P = run time virtual address of the section containing the relocation 
      + 
      r_offset of the relocation record 

S + A - P

--
Sent from the Gnu - Binutils - Users forum at Nabble.com:
http://www.nabble.com/how-does-ld-interpret-ELF-R_PPC_REL32--t422151.html#a1189942


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