| ... | ... | @@ -911,14 +911,14 @@ fn genNavRef( |
| 911 | 911 | if (is_extern) { |
| 912 | 912 | const sym_index = try macho_file.getGlobalSymbol(name.toSlice(ip), lib_name.toSlice(ip)); |
| 913 | 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 | 916 | const sym_index = try zo.getOrCreateMetadataForNav(macho_file, nav_index); |
| 917 | 917 | const sym = zo.symbols.items[sym_index]; |
| 918 | 918 | if (!single_threaded and is_threadlocal) { |
| 919 | 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 | 922 | } else if (lf.cast(.coff)) |coff_file| { |
| 923 | 923 | if (is_extern) { |
| 924 | 924 | // TODO audit this |