# link/Wasm: handle extern variables · gitcafe/zig

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

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

Visibility: public

Requested revision: 414fcea162a751435f0194ed4a01785b3a0913a0

Requested commit: 414fcea162a751435f0194ed4a01785b3a0913a0

Commit: 414fcea162a751435f0194ed4a01785b3a0913a0

Tree: 6cbc50a49ec716991ae93522714d682f76c86513

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
link/Wasm: handle extern variables

Generate symbols for extern variables and try to resolve them.
Unresolved 'data' symbols generate an error as they cannot be
exported from the Wasm runtime into a Wasm module. This means,
they can only be resolved by other object files such as from other
Zig or C code compiled to Wasm.

```

## Parents

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

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