# wasm-linker: implement the \_\_heap_end symbol · gitcafe/zig

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

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

Visibility: public

Requested revision: 5468684456b13b6465c4fcd50c072e5d5c8536a3

Requested commit: 5468684456b13b6465c4fcd50c072e5d5c8536a3

Commit: 5468684456b13b6465c4fcd50c072e5d5c8536a3

Tree: 11bc75c13275bc6328c3a2efefff059ce73c0f3b

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: implement the __heap_end symbol

When any of the object files reference the __heap_end symbol, we will
create it as a synthetic symbol. The symbol only exists within the
linker and will not be emit within the binary as it's solely used for
relocations. The symbol represents where the heap ends, so allocators
can determine whether to allocate a new page or not.

```

## Parents

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

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