| ... | @@ -1268,7 +1268,8 @@ pub fn getGlobalSymbol(self: *ZigObject, macho_file: *MachO, name: []const u8, l | ... | @@ -1268,7 +1268,8 @@ pub fn getGlobalSymbol(self: *ZigObject, macho_file: *MachO, name: []const u8, l |
| 1268 | nlist.n_strx = off; | 1268 | nlist.n_strx = off; |
| 1269 | nlist.n_type = macho.N_EXT; | 1269 | nlist.n_type = macho.N_EXT; |
| 1270 | lookup_gop.value_ptr.* = nlist_index; | 1270 | lookup_gop.value_ptr.* = nlist_index; |
| 1271 | const gop = try macho_file.getOrCreateGlobal(off); | 1271 | const global_name_off = try macho_file.strings.insert(gpa, sym_name); |
| | 1272 | const gop = try macho_file.getOrCreateGlobal(global_name_off); |
| 1272 | try self.symbols.append(gpa, gop.index); | 1273 | try self.symbols.append(gpa, gop.index); |
| 1273 | } | 1274 | } |
| 1274 | return lookup_gop.value_ptr.*; | 1275 | return lookup_gop.value_ptr.*; |