mirror of
https://github.com/ziglang/zig.git
synced 2025-12-31 18:43:18 +00:00
elf: fix allocating local TLS symbols
This commit is contained in:
parent
1afc6917f5
commit
51efee2cb6
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user