wasm-linker: consolidate writing to file

This merges the paths from flushModule and linkWithZld to a single
function that will write the entire WebAssembly module to the file.
This reduces the chance of mistakes as we do not have to duplicate
the logic. A similar action may be needed later for linkWithLLD.
6f44e2d1d3Luuk de Gram committed on 12/19/2022, 3:50:25 PMparent8eac2e3
1 file changedLine totals unavailable