aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2023-07-18 19:55:20 +0200
committerLuuk de Gram <luuk@degram.dev>2023-07-19 17:22:46 +0200
commit142dbc7b82c741692dd17f8c0455203826342bba (patch)
tree89899879d0bc08f077e3f0d2a4de1164a414eaa0 /src/Compilation.zig
parent1a3304ed236b60cd31c790bae929a78c58c9d33e (diff)
downloadzig-142dbc7b82c741692dd17f8c0455203826342bba.tar.gz
zig-142dbc7b82c741692dd17f8c0455203826342bba.zip
wasm-linker: create TLS Wasm globals correctly
Previously, they were only created when we had any TLS segment. This meant that while the symbol existed, the global itself wouldn't. The result of this was a crash during symbol names writing as it would attempt to write the symbol name of a global that didn't exist. Now we always create them, and instead update its `init` value during `setupMemory`. In the future, the entire symbol (and global) will be removed by the garbage collector.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions