-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wasm targets should append lld --stack-first (again) #10567
Comments
I see that this issue is marked closed, but it's assigned to the 0.9.1 milestone and afaict the fix isn't in the 0.9.x branch. Is this a mistake? |
No mistake - I haven't cherry picked into the 0.9.x branch for a week or so. Will be sure to grab this one. |
Pushed to 0.9.x branch. Let me know if you think I should cherry-pick an additional fix that did not make it. |
Thanks, that simplifies our decision on what the zig 0.9.1 behavior should be in the next release of wasm4 :) |
Worth noting is that this one made it in there too: #10517 (Thanks @Luukdegram!) That should address binary bloat that I'm guessing many people were experiencing before. |
Ah good to know! We've been working around it by redundantly specifying the exports in the build script, but it'll be nice to remove that. |
Zig Version
0.9.0
Steps to Reproduce
zig build -Drelease-small=true
;wasm2wat ./zig-out/lib/cart.wasm
;$__stack_pointer
global.Expected Behavior
Stack should begin before globals on wasm targets according to #4496, i. e.
Actual Behavior
The text was updated successfully, but these errors were encountered: