riscv-ld mislinks if a section relative symbol is used instead.
I've reported this as a bug
(https://github.com/riscv/riscv-binutils-gdb/issues/138), but it may be
defined as requiring a symbol.
Depends on: https://reviews.llvm.org/D43157
Differential D43158
[RISCV] Always emit a symbol for R_RISCV_PCREL_LO12_I. Bigcheese on Feb 10 2018, 3:20 AM. Authored by
Details
riscv-ld mislinks if a section relative symbol is used instead. I've reported this as a bug Depends on: https://reviews.llvm.org/D43157
Diff Detail Event TimelineComment Actions Thanks for pursuing this issue on the binutils bug tracker. Might you be interested in proposing a patch to the psabi doc that clarifies the requirement here? It seems that the main reason for forcing this behaviour is for linker relaxation - I hope we can co-ordinate with binutils to allow addends when linker relaxation is disabled. https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md |