[lld] [ELF] Don't relax PLT32 for branches from small into large code on x86-64 (PR #216409)

Jessica Clarke via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 17 11:14:57 PDT 2026


================
@@ -93,7 +103,7 @@ class RelocScan {
       process(R_PLT_PC, type, offset, sym, addend);
       return;
     }
-    if (sym.isPreemptible) {
+    if (sym.isPreemptible || keepPltForRange(ctx, sec, sym)) {
----------------
jrtc27 wrote:

While this is an x86_64-specific quirk it should remain in X86_64's RelocScan

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


More information about the llvm-commits mailing list