diff options
author | Derek Schuff <dschuff@chromium.org> | 2016-02-03 11:19:03 -0800 |
---|---|---|
committer | Derek Schuff <dschuff@chromium.org> | 2016-02-04 14:56:47 -0800 |
commit | c081e08014473a66f7e1a496fdeb3477c1325d7f (patch) | |
tree | 2990a37607887d0a681c7795ad145c8e68ea2a94 /src/wasm2asm-main.cpp | |
parent | 3b89982be258921b120dfb2e951533b3e87b70e1 (diff) | |
download | binaryen-c081e08014473a66f7e1a496fdeb3477c1325d7f.tar.gz binaryen-c081e08014473a66f7e1a496fdeb3477c1325d7f.tar.bz2 binaryen-c081e08014473a66f7e1a496fdeb3477c1325d7f.zip |
Add an option to allocate space for user stack at link time
Currently s2wasm pre-allocates space for the special __stack_pointer
variable but not for the actual stack, and __stack_pointer is null. On
real systems the stack is allocated by the dynamic linker, thread
runtime, or other toolchain/system-provided startup code. Since we don't
have any of that in wasm yet, just add an option to allocate the stack
in the linker for now, so we can continue to run single-file libc-free tests.
Diffstat (limited to 'src/wasm2asm-main.cpp')
0 files changed, 0 insertions, 0 deletions