From da57d6df320cb6bd9ce09bef192f201d59a50b28 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Tue, 3 Aug 2021 13:37:48 +0200 Subject: 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. --- src/codegen.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/codegen.zig') 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, -- cgit v1.2.3