riscv: do not emit GOT relocations for special linker symbols

This commit is contained in:
Jakub Konka
2024-08-15 10:21:20 +02:00
parent 8a0cb7002e
commit 0fd0b11bc4
5 changed files with 17 additions and 66 deletions

View File

@@ -900,7 +900,7 @@ fn genNavRef(
if (is_extern) {
const sym_index = try elf_file.getGlobalSymbol(name.toSlice(ip), lib_name.toSlice(ip));
zo.symbol(sym_index).flags.is_extern_ptr = true;
return GenResult.mcv(.{ .load_symbol = sym_index });
return GenResult.mcv(.{ .lea_symbol = sym_index });
}
const sym_index = try zo.getOrCreateMetadataForNav(elf_file, nav_index);
if (!single_threaded and is_threadlocal) {