diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-09-11 01:18:17 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-09-18 10:00:04 +0200 |
| commit | 53bd7bd044fccc70699b04d9ae37151423f70165 (patch) | |
| tree | 944ab4ac3c715b1ada6e4e804d5fefead89305df /src/link/Coff.zig | |
| parent | 34f9360ea20228b895df10b3950c72f40efb6843 (diff) | |
| download | zig-53bd7bd044fccc70699b04d9ae37151423f70165.tar.gz zig-53bd7bd044fccc70699b04d9ae37151423f70165.zip | |
macho: move to incremental writes and global relocs for incremental
Diffstat (limited to 'src/link/Coff.zig')
| -rw-r--r-- | src/link/Coff.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/Coff.zig b/src/link/Coff.zig index 013a0c0475..d9b887f831 100644 --- a/src/link/Coff.zig +++ b/src/link/Coff.zig @@ -1527,7 +1527,7 @@ pub fn getDeclVAddr( assert(self.llvm_object == null); assert(decl.link.coff.sym_index != 0); - const atom = self.atom_by_index_table.get(reloc_info.parent_atom_index).?; + const atom = self.getAtomForSymbol(.{ .sym_index = reloc_info.parent_atom_index, .file = null }).?; const target = SymbolWithLoc{ .sym_index = decl.link.coff.sym_index, .file = null }; try atom.addRelocation(self, .{ .@"type" = .direct, |
