# wasm linker: fix TLS data segments · gitcafe/zig

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

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

Visibility: public

Requested revision: 9dd6efb7e422ddc54ca34dc76b0d9efab746f8bf

Requested commit: 9dd6efb7e422ddc54ca34dc76b0d9efab746f8bf

Commit: 9dd6efb7e422ddc54ca34dc76b0d9efab746f8bf

Tree: 0b83a8901a3bc0efff2f92084cb4519842e58980

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
wasm linker: fix TLS data segments

fix calculation of alignment and size

include __tls_align and __tls_size globals along with __tls_base

include them only if the TLS segment is emitted

add missing reloc logic for memory_addr_tls_sleb

fix name of data segments to include only the prefix

```

## Parents

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

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