# wasm-linker: Upstream zwld into stage2 · gitcafe/zig

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

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

Visibility: public

Requested revision: f56ae69edd8c96a5f6525f20bf0a22704a826f00

Requested commit: f56ae69edd8c96a5f6525f20bf0a22704a826f00

Commit: f56ae69edd8c96a5f6525f20bf0a22704a826f00

Tree: 84778ce7a9eba390227e043e99fb6663e940f946

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: Upstream zwld into stage2

- Converts previous `DeclBlock` into `Atom`'s to also make them compatible when
the rest of zlwd gets upstreamed and we can link with other object files.
- Resolves function signatures and removes any duplicates, saving us a lot of
potential bytes for larger projects.
- We now create symbols for each decl of the respective type
- We can now (but not implemented yet) perform proper relocations.
- Having symbols and segment_info allows us to create an object file
for wasm.

```

## Parents

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

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