# wasm-linker: Fix archive symbols parsing · gitcafe/zig

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

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

Visibility: public

Requested revision: 476202eec03a2196daab7f9998c556796cc42eca

Requested commit: 476202eec03a2196daab7f9998c556796cc42eca

Commit: 476202eec03a2196daab7f9998c556796cc42eca

Tree: 9a637647a15920ea59a6e07ea49494f96b33eeb0

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: Fix archive symbols parsing

When parsing the table of contents containing the symbols and their
positions we initially used the index within the map to retrieve
the offset. However, during resizing of the underlaying array this
would invalidate those indexes which meant incorrect offsets were
being stored for symbols. We now use the current symbol index
to also get the index into the symbol position instead.

```

## Parents

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

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