This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[MIPS] Can we have R_MIPS_PC64?
- From: Fangrui Song <i at maskray dot me>
- Cc: binutils at sourceware dot org
- Date: Tue, 4 Feb 2020 23:19:44 -0800
- Subject: [MIPS] Can we have R_MIPS_PC64?
R_MIPS_PC32 exists as a GNU extension.
R_MIPS_PC64 existed, but was removed by https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=4030e8f62467c29b782aa2480e1e452b8e458699
(like all the old commits, the description just recorded what the commit *did*. There was no *why*.)
This just makes certain things unnecessarily complex.
* DW_EH_PE_pcrel|DW_EH_PE_sdata8 => ?
* __patchable_function_entries has to have the SHF_WRITE flag on MIPS https://gcc.gnu.org/ml/gcc/2020-01/msg00106.html
.quad foo - . => Error: PC-relative reference to a different section