[lld] [ELF] Add target-specific relocation scanning for x86 (PR #178846)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 6 12:49:19 PST 2026


================
@@ -935,7 +1035,7 @@ void X86_64::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const {
   case R_X86_64_GOTTPOFF:
   case R_X86_64_CODE_4_GOTTPOFF:
   case R_X86_64_CODE_6_GOTTPOFF:
-    if (rel.expr == R_RELAX_TLS_IE_TO_LE) {
+    if (rel.expr == R_TPREL) {
       relaxTlsIeToLe(loc, rel, val);
     } else {
       checkInt(ctx, loc, val, 32, rel);
----------------
aeubanks wrote:

looks like a `val` here that was previous 5176 is now 4294972448

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


More information about the llvm-commits mailing list