diff options
| author | Luuk de Gram <luuk@degram.dev> | 2023-03-09 19:14:17 +0100 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2023-03-09 19:14:17 +0100 |
| commit | 87738cad8607a31537a5c16826ab315990bc73c6 (patch) | |
| tree | 8d0bd79d5f16fb1cb3fd0fb8e909369576ed4948 /src/Module.zig | |
| parent | 27701596060c7a8018f9a9add21952a6d7f83d96 (diff) | |
| download | zig-87738cad8607a31537a5c16826ab315990bc73c6.tar.gz zig-87738cad8607a31537a5c16826ab315990bc73c6.zip | |
wasm-linker: store symbol's virtual address
For data symbols we will now store its virtual address. This means
we do no longer have to calculate it each time a relocation asks
for the address. This is now done for all data symbols only once
rather than every single relocation for that symbol.
This now also allows us directly store the virtual address of synthetic
symbols without having to create an atom for them. This means we also
don't need to have a "synthetic" segment any longer and do not emit
the synthetic symbols such as __heap_end and __heap_base into the final
binary.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions
