diff options
author | Sam Clegg <sbc@chromium.org> | 2018-11-30 12:20:33 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-30 12:20:33 -0800 |
commit | 3814fd6f2dab5adb5fb81022308818e4dd3b1020 (patch) | |
tree | 00b9787fcef8599e6d8c61674c510e3dcf52391f /src/wasm/wasm.cpp | |
parent | 0e068c386ef1588c09e57a4d081be626d83bc31c (diff) | |
download | binaryen-3814fd6f2dab5adb5fb81022308818e4dd3b1020.tar.gz binaryen-3814fd6f2dab5adb5fb81022308818e4dd3b1020.tar.bz2 binaryen-3814fd6f2dab5adb5fb81022308818e4dd3b1020.zip |
wasm-emscripten-finalize: Remove stack pointer global from shared libs (#1791)
The wasm backend uses a wasm global (__stack_pointer) for the shadow
stack location. In order to make this work with shared libraries the
main module would have to export this global and shared libraries would
need to import it. This means we'd be relying of mutable globals which
are not yet implemented in all browsers.
This change allows is to move forward with shared libraries without
mutable global support by replacing all stack pointer access in shared
libraries with functions calls.
Diffstat (limited to 'src/wasm/wasm.cpp')
0 files changed, 0 insertions, 0 deletions