# wasm-linker: Emit symbol table for object file · gitcafe/zig

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

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

Visibility: public

Requested revision: f7f3678b485fff790af278ff5436e0b63db998f8

Requested commit: f7f3678b485fff790af278ff5436e0b63db998f8

Commit: f7f3678b485fff790af278ff5436e0b63db998f8

Tree: 3743647e0f716c6fd7f9239fc5e99c78ba2acb97

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: Emit symbol table for object file

When creating a relocatable object file, emit the symbol table.
We do this by iterating over all atoms, and finding the corresponding
symbols of those. This provides us all the meta information such as size, and offset as well.
This data is required for defined data symbols.

When we emit an object file, the "Names" section does not have to be emitted, as all symbol names
are already in the symbol table, so the names section is redundant.

```

## Parents

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

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