[llvm] [BOLT][RISCV] Don't read .rela.plt twice when DT_RELA aliases DT_JMPREL (PR #211201)
Pengcheng Wang via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 22 20:07:25 PDT 2026
wangpc-pp wrote:
> > x86-64, AArch64, arm, mips, ppc, etc. all #define elf_backend_dtrel_excludes_plt 1, so their DT_RELASZ covers only .rela.dyn.
> > RISC-V never defines it , so it keeps the default 0 → DT_RELASZ = .rela.dyn + .rela.plt.
>
> Based on your description, this issue problem only on RISC-V? If so, I suggest adding a RISC-V-specific check here.
And probably we need to fix it in binutils as well? cc @kito-cheng
https://github.com/llvm/llvm-project/pull/211201
More information about the llvm-commits
mailing list