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] |
I'm trying to figure out which PPC relocations are PC-relative. For the SVR4 ABI ones its fairly easy, since they have P (the "address of the storage unit being relocated") somewhere in their calculation. For the embedded relocs it's somewhat fuzzier. I noticed BFD has R_PPC_EMB_RELSDA marked as PC-relative, but I don't understand why; the definition in the EABI is "The static linker shall set the 16-bits at the address pointed to by the relocation entry to the address of the symbol whose index is in r_info plus the value of r_addend minus the appropriate base for the section containing the symbol". None of that seems to be relative to the offset of the relocated field -- am I missing something obvious? Thanks, Michael Mrozek
Attachment:
pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |