# wasm-linker: implement TLS initialization function · gitcafe/zig

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

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

Visibility: public

Requested revision: 9d13c2257dcae11d9bc69035e55c33a7dda14a2b

Requested commit: 9d13c2257dcae11d9bc69035e55c33a7dda14a2b

Commit: 9d13c2257dcae11d9bc69035e55c33a7dda14a2b

Tree: 32e99150347fc950bb16e23b587d07e7f975fa20

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: implement TLS initialization function

Implements the TLS initialization function. This is a synthetic function
created by the linker. This will only be created when shared-memory is
enabled. This function will be called during thread creation, if there's
any TLS symbols, which will initialize the TLS segment using the
bulk-memory feature.

```

## Parents

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

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