[llvm] [BOLT] Fix order of R_*_IRELATIVE in .rela.plt (PR #106515)
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 15 18:54:38 PDT 2024
================
@@ -899,7 +899,7 @@ bool Relocation::isIRelative(uint64_t Type) {
case Triple::aarch64:
return Type == ELF::R_AARCH64_IRELATIVE;
case Triple::riscv64:
- llvm_unreachable("not implemented");
+ return Type == ELF::R_RISCV_IRELATIVE;
----------------
maksfb wrote:
Can we replace the whole function body with `return Type == getIRelative();`?
https://github.com/llvm/llvm-project/pull/106515
More information about the llvm-commits
mailing list