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] |
This adds support for the PCR_[LH]16 relocs. The description from TI is as follows: - Always RELA - The addend (A) encodes the offset between the current fetch packet and an unnamed 'base' label - The result is the offset between the target symbol and the fetch packet of the base label R = S - FP(FP(PC) - A) (where PC is the address of the relocation and FP(x) is the address of the fetch packet containing x) I have a modified version of gcc that uses this for casesi patterns, and that seems to work, but I'd still welcome a second pair of eyes to verify that I've gotten these calculations right and the testcase output makes sense. In gas, I've added these relocs to tic6x_fix_adjustable since the addend is special. Bernd
Attachment:
pcr-reloc-src.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |