0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00

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.
This commit is contained in:
Luuk de Gram 2023-11-26 18:55:06 +01:00
commit 596d1cd5a8
No known key found for this signature in database
GPG key ID: A8CFE58E4DC7D664
2 changed files with 59 additions and 36 deletions