elf: fix allocating local TLS symbols

This commit is contained in:
Jakub Konka 2023-11-11 18:30:35 +01:00 committed by Jacob Young
parent 1afc6917f5
commit 51efee2cb6

View File

@ -402,7 +402,7 @@ pub fn allocateTlvAtoms(self: ZigObject, elf_file: *Elf) void {
const local = elf_file.symbol(tlv.symbol_index);
const shdr = elf_file.shdrs.items[atom.output_section_index];
atom.value += shdr.sh_addr;
local.value += shdr.sh_addr;
local.value = atom.value;
// TODO exported TLS vars
}