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

Farid Zakaria via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 17 11:15:12 PDT 2026


================
@@ -757,8 +757,15 @@ static void addPltEntry(Ctx &ctx, PltSection &plt, GotPltSection &gotPlt,
     return;
   }
   gotPlt.addEntry(sym);
-  rel.addReloc(
-      {type, &gotPlt, sym.getGotPltOffset(ctx), isPreemptible, sym, 0, expr});
----------------
fzakaria wrote:

@jrtc27 I guess I was thinking of making a single function call vs the two separate with comments on the other two directing to the use the unified one + some sort of assert?

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


More information about the llvm-commits mailing list