Why are there 2 continous R_MIPS_HI16 reloc entries in the ELF excutable?
Ian Lance Taylor
iant@google.com
Thu Aug 14 23:25:00 GMT 2008
"Pan ruochen" <panruochen@gmail.com> writes:
>> The GNU toolchain allows relaxed rules of R_MIPS_HI16/R_MIPS_LO16
>> as an extension. (This allows some optimizations which wouldn't be
>> possible otherwise.)
>>
>>
>> Thiemo
>>
>
> How should I handle the GNU extension then? Are there any document?
Compute R_MIPS_HI16 as usual. For R_MIPS_LO16, use the addend from
the immediately preceding R_MIPS_HI16.
Ian
More information about the Binutils
mailing list