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