| ... | @@ -911,14 +911,14 @@ fn genNavRef( | ... | @@ -911,14 +911,14 @@ fn genNavRef( |
| 911 | if (is_extern) { | 911 | if (is_extern) { |
| 912 | const sym_index = try macho_file.getGlobalSymbol(name.toSlice(ip), lib_name.toSlice(ip)); | 912 | const sym_index = try macho_file.getGlobalSymbol(name.toSlice(ip), lib_name.toSlice(ip)); |
| 913 | zo.symbols.items[sym_index].flags.is_extern_ptr = true; | 913 | zo.symbols.items[sym_index].flags.is_extern_ptr = true; |
| 914 | return GenResult.mcv(.{ .lea_symbol = sym_index }); | 914 | return .{ .mcv = .{ .lea_symbol = sym_index } }; |
| 915 | } | 915 | } |
| 916 | const sym_index = try zo.getOrCreateMetadataForNav(macho_file, nav_index); | 916 | const sym_index = try zo.getOrCreateMetadataForNav(macho_file, nav_index); |
| 917 | const sym = zo.symbols.items[sym_index]; | 917 | const sym = zo.symbols.items[sym_index]; |
| 918 | if (!single_threaded and is_threadlocal) { | 918 | if (!single_threaded and is_threadlocal) { |
| 919 | return .{ .mcv = .{ .load_tlv = sym.nlist_idx } }; | 919 | return .{ .mcv = .{ .load_tlv = sym.nlist_idx } }; |
| 920 | } | 920 | } |
| 921 | return GenResult.mcv(.{ .lea_symbol = sym.nlist_idx }); | 921 | return .{ .mcv = .{ .lea_symbol = sym.nlist_idx } }; |
| 922 | } else if (lf.cast(.coff)) |coff_file| { | 922 | } else if (lf.cast(.coff)) |coff_file| { |
| 923 | if (is_extern) { | 923 | if (is_extern) { |
| 924 | // TODO audit this | 924 | // TODO audit this |