emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

Export data addresses from the Wasm module just like other symbols.

Open sbc100 opened this issue 4 months ago • 0 comments

This removes the special handling of exported immutable globals which simplifies the code in a few different ways.

For programs that export data addresses (this is relatively rare) this means codesize reduction for the generated JS (since it no longer contains the constant values) and the codesize increase for the Wasm binary (since it now contains extra exports).

The main reason for this is consistency with dynamic linking (where data exports are always needed) and a reduction in complexity.

Fixes: #25556

sbc100 avatar Oct 16 '25 14:10 sbc100