# wasm-linker: store symbol's virtual address · gitcafe/zig

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

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

Visibility: public

Requested revision: 87738cad8607a31537a5c16826ab315990bc73c6

Requested commit: 87738cad8607a31537a5c16826ab315990bc73c6

Commit: 87738cad8607a31537a5c16826ab315990bc73c6

Tree: 8d0bd79d5f16fb1cb3fd0fb8e909369576ed4948

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
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.

```

## Parents

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

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