[llvm] [BOLT][RISCV] Handle static IFUNC calls through .iplt (PR #207733)
Kito Cheng via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 00:09:42 PDT 2026
================
@@ -1899,17 +1967,46 @@ void RewriteInstance::createPLTBinaryFunction(uint64_t TargetAddress,
}
Symbol = TargetBF->getSymbol();
+ if (BC->isRISCV()) {
+ const uint64_t ResolverOffset = Rel->Addend - TargetBF->getAddress();
+ if (ResolverOffset)
+ Symbol = TargetBF->addEntryPointAtOffset(ResolverOffset);
+ }
----------------
kito-cheng wrote:
Same question here
https://github.com/llvm/llvm-project/pull/207733
More information about the llvm-commits
mailing list