# wasm-linker: Emit relocations for object files · gitcafe/zig

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

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

Visibility: public

Requested revision: 0a48a763fd3548a7b8609555cecbafc21ebe1fc3

Requested commit: 0a48a763fd3548a7b8609555cecbafc21ebe1fc3

Commit: 0a48a763fd3548a7b8609555cecbafc21ebe1fc3

Tree: efcb52976b8182f51b7c1d80ce88bb5b6997c5a7

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

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

```

## Parents

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

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