wasm-linker: correctly resolve undefined functions

We now resolve undefined symbols during incremental-compilation
where we discard the current symbol if we detect we found
an existing symbol which is not the one currently being updated.
The symbol will always be discarded in favor of the existing symbol
in such a case.
44b322ce64Luuk de Gram committed on 6/16/2023, 3:16:56 PMparente3db210
2 files changedLine totals unavailable