# wasm-link: ensure TLS global when resolved · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f3626eb81662fb7519d09e14bed6e4d958c73e43)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f3626eb81662fb7519d09e14bed6e4d958c73e43

Requested commit: f3626eb81662fb7519d09e14bed6e4d958c73e43

Commit: f3626eb81662fb7519d09e14bed6e4d958c73e43

Tree: 8861fdc224683e84ac02d3d0d1385d46142ccecd

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-link: ensure TLS global when resolved

When a linked object contains references to the __tls_base symbol,
we lazily create this symbol. However, we wouldn't create the corresponding
Wasm global. This meant its address wasn't set correctly as well as fail
to output it into the `Names` section.

```

## Parents

- [2a322645331532e22def160677a345854f00b7e2](https://git.cafe/gitcafe/zig/commit/2a322645331532e22def160677a345854f00b7e2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f3626eb81662fb7519d09e14bed6e4d958c73e43?format=markdown)
