# wasm-linker: support \`\-\-no-gc-sections\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 596d1cd5a8a2daad25df9d39ad384df1b67eb39e

Requested commit: 596d1cd5a8a2daad25df9d39ad384df1b67eb39e

Commit: 596d1cd5a8a2daad25df9d39ad384df1b67eb39e

Tree: 32c2b130127548b829e768ea227bba30eec26fe0

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: support `--no-gc-sections`

By default we garbage-collect sections for Wasm to reduce size, as well
as finish linking quicker (as we have fewer things to do). However,
when the user specifies `--no-gc-sections` we ensure all resolved symbols
get marked and therefore do not get garbage collected.
This is supported in both incremental-mode and traditional linking.

```

## Parents

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

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