[llvm-branch-commits] [lld] ELF: Only rewrite non-preemptible IFUNCs to IPLT functions if a non-IRELATIVE relocation is needed. (PR #133531)

Peter Smith via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Apr 10 09:38:32 PDT 2025


================
@@ -42,6 +42,8 @@ void printTraceSymbol(const Symbol &sym, StringRef name);
 enum {
   NEEDS_GOT = 1 << 0,
   NEEDS_PLT = 1 << 1,
+  // True if this is an ifunc with a direct relocation that cannot be
----------------
smithp35 wrote:

Although not new, could be worth expanding on what a direct relocation is in the comment. Could be just `direct (non GOT or PLT generating) relocation ...`  

https://github.com/llvm/llvm-project/pull/133531


More information about the llvm-branch-commits mailing list