elf: fix GOT32 reloc resolution logic

This commit is contained in:
Jakub Konka 2024-08-15 10:36:37 +02:00
parent f0df0acd70
commit c79290467f

View File

@ -1314,7 +1314,7 @@ const x86_64 = struct {
}
},
.GOT32 => try cwriter.writeInt(i32, @as(i32, @intCast(G + GOT + A)), .little),
.GOT32 => try cwriter.writeInt(i32, @as(i32, @intCast(G + A)), .little),
else => try atom.reportUnhandledRelocError(rel, elf_file),
}