diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-08-26 08:11:17 +0200 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-08-30 16:38:55 +0200 |
| commit | 4f72ac265acac682541f170a1189a06350009431 (patch) | |
| tree | 4724681222846d5303f56e63886e4d4ba4fe7e09 /src/codegen | |
| parent | 414fcea162a751435f0194ed4a01785b3a0913a0 (diff) | |
| download | zig-4f72ac265acac682541f170a1189a06350009431.tar.gz zig-4f72ac265acac682541f170a1189a06350009431.zip | |
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.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions
