# wasm-link: Discard old symbols correctly · gitcafe/zig

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

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

Visibility: public

Requested revision: 16daf3f3bcb27b2e0b0f45ee48c69824a4804981

Requested commit: 16daf3f3bcb27b2e0b0f45ee48c69824a4804981

Commit: 16daf3f3bcb27b2e0b0f45ee48c69824a4804981

Tree: 20d218d50128c1cbf3ecb09fa59dab44fcc02e57

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-link: Discard old symbols correctly

When a new symbol is resolved to an existing symbol where
it doesn't overwrite the existing symbol, we now add this symbol
to the discarded list. This is required so when any relocation points
to the symbol, we can retrieve the correct symbol it's resolved by instead.

```

## Parents

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

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