# wasm: create linking objects in correct module · gitcafe/zig

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

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

Visibility: public

Requested revision: f6896ef2180709fedeb5bafde3fe58ca6d06aa3a

Requested commit: f6896ef2180709fedeb5bafde3fe58ca6d06aa3a

Commit: f6896ef2180709fedeb5bafde3fe58ca6d06aa3a

Tree: 0436e2b8ca804d0d34e288db8675788b2a07f643

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: create linking objects in correct module

CodeGen will create linking objects such as symbols, function types, etc
in ZigObject, rather than in the linker driver where the final result
will be stored. They will end up in the linker driver module during
the `flush` phase instead.

This must mean we must call functions such as `addOrGetFuncType` in the
correct namespace or else it will be created in the incorrect list and
therefore return incorrect indexes.

```

## Parents

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

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