# wasm-linker: improve indirect function table · gitcafe/zig

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

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

Visibility: public

Requested revision: 3ca3fe94f454688f05415cf0a39954a0379b4c84

Requested commit: 3ca3fe94f454688f05415cf0a39954a0379b4c84

Commit: 3ca3fe94f454688f05415cf0a39954a0379b4c84

Tree: 42f6c2481c25666992e78bf2e55b0a0d9ac9ae42

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: improve indirect function table

Rather than checking for function pointers during the writing phase,
we now create a synethtic symbol when a new link job has started.
This means the symbol can correctly be resolved during link time
with the indirect function table from other object files, ensuring
we are properly performing relocations and our binary writer is now
unaware of any of its logic and simply emits the table according to
the symbol such as any other symbols.

```

## Parents

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

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