diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2021-08-03 13:37:48 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2021-08-12 10:20:57 +0200 |
| commit | da57d6df320cb6bd9ce09bef192f201d59a50b28 (patch) | |
| tree | 96deedef1ca153086d9326433c1f398937121d0d /src/codegen.zig | |
| parent | 493822ac3bab344821aad180aae27b629eb920c1 (diff) | |
| download | zig-da57d6df320cb6bd9ce09bef192f201d59a50b28.tar.gz zig-da57d6df320cb6bd9ce09bef192f201d59a50b28.zip | |
macho: simplify symbol management and resolution
instead of globally storing unresolved and tentative defs,
store indices to actual symbols in the functions that are responsible
for symbol resolution.
Diffstat (limited to 'src/codegen.zig')
| -rw-r--r-- | src/codegen.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.zig b/src/codegen.zig index 38cc27d5bc..d5b106dbe3 100644 --- a/src/codegen.zig +++ b/src/codegen.zig @@ -2714,7 +2714,7 @@ fn Function(comptime arch: std.Target.Cpu.Arch) type { // Add relocation to the decl. try macho_file.active_decl.?.link.macho.relocs.append(self.bin_file.allocator, .{ .offset = offset, - .where = .import, + .where = .undef, .where_index = where_index, .payload = .{ .branch = .{ .arch = arch, |
