aboutsummaryrefslogtreecommitdiff
path: root/src/stage1/ir.cpp
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-02-19 21:25:50 +0100
committerLuuk de Gram <luuk@degram.dev>2022-02-23 16:07:36 +0100
commit0a48a763fd3548a7b8609555cecbafc21ebe1fc3 (patch)
treeefcb52976b8182f51b7c1d80ce88bb5b6997c5a7 /src/stage1/ir.cpp
parent2b0431a8d3933a46fecba2bf064bf45df54a111d (diff)
downloadzig-0a48a763fd3548a7b8609555cecbafc21ebe1fc3.tar.gz
zig-0a48a763fd3548a7b8609555cecbafc21ebe1fc3.zip
wasm-linker: Emit relocations for object files
When generating a relocatable object file, we now emit a custom "reloc.CODE" and "reloc.DATA" section which will contain the relocations for each section. Using a new symbol location -> Atom mapping, we can now easily find the corresponding `Atom` from a symbol. This can be used to construct the symbol table, as well as easier access to a target atom when performing a relocation for a data symbol.
Diffstat (limited to 'src/stage1/ir.cpp')
0 files changed, 0 insertions, 0 deletions