Skip to content

Commit fdf3efa

Browse files
committed
Require names when using STACK_OVERFLOW_CHECK=2
See WebAssembly/binaryen#8679 See #24964
1 parent bfe3a91 commit fdf3efa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tools/emscripten.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,9 @@ def finalize_wasm(infile, outfile, js_syms):
541541
args.append('--side-module')
542542
if settings.STACK_OVERFLOW_CHECK >= 2:
543543
args.append('--check-stack-overflow')
544+
# The check-stack pass in binaryen needs to be able to locate `__stack_pointer` by name.
544545
modify_wasm = True
546+
need_name_section = True
545547
if settings.STANDALONE_WASM:
546548
args.append('--standalone-wasm')
547549

0 commit comments

Comments
 (0)