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

Jessica Clarke via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Apr 10 12:51:46 PDT 2025


jrtc27 wrote:

The canonical PLT is for
```int main(void) {
  return compare(&ifp);
}```
in code models where the address is computed inline (absolute or PC-relative) rather than as an indirect load (whether from a global or a GOT entry).

I like to think of canonical PLTs as the function version of copy relocations.

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


More information about the llvm-branch-commits mailing list