mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
elf: add symbols to .got section directly
This commit is contained in:
parent
2c2bc66ce1
commit
66f34b15e8
@ -1762,8 +1762,8 @@ fn scanRelocs(self: *Elf) !void {
|
||||
for (self.symbols.items, 0..) |*sym, sym_index| {
|
||||
if (sym.flags.needs_got) {
|
||||
log.debug("'{s}' needs GOT", .{sym.name(self)});
|
||||
// TODO how can we tell we need to write it again, aka the entry is dirty?
|
||||
_ = try sym.getOrCreateGotEntry(@intCast(sym_index), self);
|
||||
_ = try self.got.addGotSymbol(@intCast(sym_index), self);
|
||||
sym.flags.has_got = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user