wasm-linker: shared-memory fixes

Implements the `start` section which will execute a given function
at startup of the program. After function execution, the _start
function will be called by the runtime. In the case of shared-memory
we set this section to the function `__wasm_init_memory` which will
initialize all memory on startup.

This also fixes the above mentioned function to ensure we correctly
lower the i32 values.

Lastly, this fixes a typo where we would retrieve a global, instead
of setting its value.
2672f7d9e8Luuk de Gram committed on 7/19/2023, 3:22:46 PMparent376e1b4
1 file changedLine totals unavailable