zig icon indicating copy to clipboard operation
zig copied to clipboard

wasm/linker: symbol resolution improvements

Open Luukdegram opened this issue 2 years ago • 0 comments

This improves symbol resolution during incremental compilation mode where previously both externs and exports were not being resolved with existing global symbols. This PR ensures during updateDeclExports and getOrPutImport a symbol will be resolved if an existing symbol is found. The symbol resolution follows the same rules as the general symbol resolution for object files.

This also fixes 2 regressions caused by the internpool merge where a merge conflict resulted in undoing previous fixes.

Luukdegram avatar Jun 16 '23 15:06 Luukdegram