[llvm] [BOLT][RISCV] Don't read .rela.plt twice when DT_RELA aliases DT_JMPREL (PR #211201)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 22 02:22:54 PDT 2026
================
@@ -2731,6 +2731,14 @@ void RewriteInstance::processDynamicRelocations() {
}
}
+ // On RISC-V, DT_RELA aliases DT_JMPREL when .rela.dyn is empty. Skip it to
----------------
WangJee wrote:
LLD doesn't do this by default: it emits DT_RELA only when .rela.dyn is non-empty, So I think this isn't reachable on default LLD output
https://github.com/llvm/llvm-project/pull/211201
More information about the llvm-commits
mailing list