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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user