# wasm-link: Implement indirect function table · gitcafe/zig

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

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

Visibility: public

Requested revision: 7226ad2670f267b4d90b84d0e104fbb1fa41fe49

Requested commit: 7226ad2670f267b4d90b84d0e104fbb1fa41fe49

Commit: 7226ad2670f267b4d90b84d0e104fbb1fa41fe49

Tree: 2f690511466db3bc73e13b994fd3844079e321b6

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-link: Implement indirect function table

The function table contains all function pointers that are called
by using call_indirect. During codegen, we create a relocation
where the linker will resolve the correct index into the table and stores
this value within the data section at the location of the pointer.

```

## Parents

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

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