| ... | ... | @@ -1119,7 +1119,7 @@ pub fn updateSymtabSize(self: *Object, elf_file: *Elf) void { |
| 1119 | 1119 | } |
| 1120 | 1120 | |
| 1121 | 1121 | for (self.globals(), self.symbols_resolver.items) |*global, resolv| { |
| 1122 | | const ref = elf_file.resolver.values.items[resolv]; |
| 1122 | const ref = elf_file.resolver.values.items[resolv - 1]; |
| 1123 | 1123 | const ref_sym = elf_file.symbol(ref) orelse continue; |
| 1124 | 1124 | if (ref_sym.file(elf_file).?.index() != self.index) continue; |
| 1125 | 1125 | if (!isAlive(global, elf_file)) continue; |
| ... | ... | @@ -1146,7 +1146,7 @@ pub fn writeSymtab(self: *Object, elf_file: *Elf) void { |
| 1146 | 1146 | } |
| 1147 | 1147 | |
| 1148 | 1148 | for (self.globals(), self.symbols_resolver.items) |global, resolv| { |
| 1149 | | const ref = elf_file.resolver.values.items[resolv]; |
| 1149 | const ref = elf_file.resolver.values.items[resolv - 1]; |
| 1150 | 1150 | const ref_sym = elf_file.symbol(ref) orelse continue; |
| 1151 | 1151 | if (ref_sym.file(elf_file).?.index() != self.index) continue; |
| 1152 | 1152 | const idx = global.outputSymtabIndex(elf_file) orelse continue; |