| ... | ... | @@ -1762,8 +1762,8 @@ fn scanRelocs(self: *Elf) !void { |
| 1762 | 1762 | for (self.symbols.items, 0..) |*sym, sym_index| { |
| 1763 | 1763 | if (sym.flags.needs_got) { |
| 1764 | 1764 | log.debug("'{s}' needs GOT", .{sym.name(self)}); |
| 1765 | | // TODO how can we tell we need to write it again, aka the entry is dirty? |
| 1766 | | _ = try sym.getOrCreateGotEntry(@intCast(sym_index), self); |
| 1765 | _ = try self.got.addGotSymbol(@intCast(sym_index), self); |
| 1766 | sym.flags.has_got = true; |
| 1767 | 1767 | } |
| 1768 | 1768 | } |
| 1769 | 1769 | } |