wasm-linker: Fix symbol resolving and relocs

- Correctly get discard symbol by first checking if it was discarded or not.
- Remove imports if extern symbols were resolved by an object file.
- Correctly relocate data symbols by ensuring the atom is from the correct file.
- Fix the `Names` section by using the resolved symbols, rather than the ones defined in Zig code.
4ebe8a53caLuuk de Gram committed on 2/17/2022, 5:11:48 PMparenta462250
2 files changedLine totals unavailable