The WASIX Rust target needs the correct startup objects, runtime libraries, and
exports for both regular modules and dynamically linked modules. The downstream
patch hard-codes a runtime library list and changes export limiting on the base
target, so it is too broad to merge as-is.
Define the two target variants from their actual linker contracts, keeping
dynamic-linking behavior scoped to the -dl target. Add link tests that inspect
the resulting imports and exports and exercise a C dependency for each variant.
Related downstream patch:
WASIX linker configuration
The WASIX Rust target needs the correct startup objects, runtime libraries, and
exports for both regular modules and dynamically linked modules. The downstream
patch hard-codes a runtime library list and changes export limiting on the base
target, so it is too broad to merge as-is.
Define the two target variants from their actual linker contracts, keeping
dynamic-linking behavior scoped to the
-dltarget. Add link tests that inspectthe resulting imports and exports and exercise a C dependency for each variant.
Related downstream patch:
WASIX linker configuration