# wasm-linker: ensure custom sections are parsed · gitcafe/zig

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

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

Visibility: public

Requested revision: 2b3e6f680c5843877f6252bd3d85a20abe367da6

Requested commit: 2b3e6f680c5843877f6252bd3d85a20abe367da6

Commit: 2b3e6f680c5843877f6252bd3d85a20abe367da6

Tree: e895655b3a7ca6ac29def54d6b0b8da968ce3552

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: ensure custom sections are parsed

Not all custom sections are represented by a symbol, which means the
section will not be parsed by the lazy parsing and therefore get garbage-
collected. This is problematic as it may contain debug information that
should not be garbage-collected. To resolve this, we manually create
local symbols for those sections and also ensure they do not get garbage-
collected.

```

## Parents

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

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