diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-02-19 21:25:50 +0100 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-02-23 16:07:36 +0100 |
| commit | 0a48a763fd3548a7b8609555cecbafc21ebe1fc3 (patch) | |
| tree | efcb52976b8182f51b7c1d80ce88bb5b6997c5a7 /src/stage1/ir.cpp | |
| parent | 2b0431a8d3933a46fecba2bf064bf45df54a111d (diff) | |
| download | zig-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
