link/Wasm: handle extern variables

Generate symbols for extern variables and try to resolve them.
Unresolved 'data' symbols generate an error as they cannot be
exported from the Wasm runtime into a Wasm module. This means,
they can only be resolved by other object files such as from other
Zig or C code compiled to Wasm.
414fcea162Luuk de Gram committed on 8/30/2022, 2:38:51 PMparentaa5568b
3 files changedLine totals unavailable