# wasm: create relocations for extern decls · gitcafe/zig

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

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

Visibility: public

Requested revision: 4f72ac265acac682541f170a1189a06350009431

Requested commit: 4f72ac265acac682541f170a1189a06350009431

Commit: 4f72ac265acac682541f170a1189a06350009431

Tree: 4724681222846d5303f56e63886e4d4ba4fe7e09

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: create relocations for extern decls

This also fixes performing relocations for data symbols
of which the target symbol exists in an external object file.
We do this by checking if the target symbol was discarded,
and if so: get the new location so that we can find the
corresponding atom that belongs to said new location. Previously
it would always assume the symbol would live in the same file
as the atom/symbol that is doing the relocation.

```

## Parents

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

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