You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wasm targets should append lld --stack-first #4496
This means when the stack runs out of space, it will start trampling over global memory before causing a stack overflow.
Appending --stack-first will flip where the stack and the globals are located, so stack overflow will error out immediately instead of corrupting globals.
Activity
zigazeljko commentedon May 31, 2020
So the only change is adding
lj->args.append("--stack-first");toconstruct_linker_job_wasm?If so, I can prepare a pull request.
fengb commentedon Jun 1, 2020
Yep that should be it.
WASI: Put the stack before globals
WASI: Put the stack before globals
WASI: Put the stack before globals
WASI: Put the stack before globals