# wasm/Object: parse debug sections into reloc data · gitcafe/zig

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

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

Visibility: public

Requested revision: 9a92f3d290694bfefbc7d71b5ba1823edb6c547f

Requested commit: 9a92f3d290694bfefbc7d71b5ba1823edb6c547f

Commit: 9a92f3d290694bfefbc7d71b5ba1823edb6c547f

Tree: a2b6759748a3c0d561d0bccdcbe43f14e7d20c4b

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm/Object: parse debug sections into reloc data

Rather than storing the name of a debug section into the structure
`RelocatableData`, we use the `index` field as an offset into the
debug names table. This means we do not have to store an extra 16 bytes
for non-debug sections which can be massive for object files where each
data symbol has its own data section. The name of a debug section
can then be retrieved again when needed by using the offset and
then reading until the 0-delimiter.

```

## Parents

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

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