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.
596d1cd5a8Luuk de Gram committed on 11/28/2023, 3:40:26 PMparent4be3cd2
2 files changedLine totals unavailable