wasm-linker: discard symbol when both undefined

During symbol resolution when both symbols are undefined, we must
discard the new symbol with a reference to the existing symbol. This
ensures the original symbol remains undefined. This fixes symbol
resolution when linking with WASI-libC.
2339b25fd4Luuk de Gram committed on 1/12/2023, 7:50:15 PMparentcbbf8c8
1 file changedLine totals unavailable