This is the mail archive of the binutils@sources.redhat.com 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]

[RFA/Patch] sh64: R_SH_JMP_SLOT reloc. addend


For sh64, the R_SH_JMP_SLOT and R_SH_JMP_SLOT64
dynamic relocations have the value of GOT_BIAS placed in
their addend.  The dynamic linker then has to take special care
NOT to add it in when calculating the relocation value.

Is there a reason for putting the GOT_BIAS in the addend?
If not, I suggest we put zero there instead, which means the
dynamic linker does not have to avoid the addend.

The attached file contains a patch to leave zero in the addend,
and an ld testsuite test for the value of the addend.

Steve.


Attachment: jmpslot-patch.txt
Description: Text document


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