R_MIPS_GOT16 relocation against local symbol requires index of a local GOT entry which contains page address corresponds to sum of the symbol address and addend. The addend in that case is calculated using addends from the R_MIPS_GOT16 and paired R_MIPS_LO16 relocations.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This seems to be yet another oddity of the MIPS ABI, but the code LGTM.
ELF/InputSection.cpp | ||
---|---|---|
256 | You can remove 0xffff, no? In SignExtend64<16>(X), only the least significant 16 bits in X matters, I think. |
You can remove 0xffff, no? In SignExtend64<16>(X), only the least significant 16 bits in X matters, I think.