wasm-linker: write to file at once

Rather than writing to the file using a writer, we now first write to
an arraylist and store the binary in memory. Once the full binary
data was written, we write all data to disk at once. This reduces
the amount of syscalls tremendously, increasing the performance of
the linker in exchange for increased memory usage during flush.
6dbf5f1d86Luuk de Gram committed on 9/12/2022, 7:19:16 PMparenta01b144
1 file changedLine totals unavailable