When the original wasm contains multiple compilation units, the current logic uses the first one for everything. This commit tries to use a bit more appropriate ones.
When the original wasm contains multiple compilation units, the current logic uses the first one for everything. This commit tries to use a bit more appropriate ones.