Skip to content
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

Ignore --initial-stack-pointer arg to wasm-emscripten-finalize #2201

Merged
merged 1 commit into from
Jul 10, 2019

Conversation

sbc100
Copy link
Member

@sbc100 sbc100 commented Jul 2, 2019

We were passing bad value in --initial-stack-pointer which did not
include the STATIC_BUMP (since STATIC_BUMP is determinted by the output
of finalize).

If emscripten wants to set the stack pointer position it can do
so by calling the stackRestore() function at startup.

This argument will be removed completely once we stop passing it on the
emscripten side.

See emscripten-core/emscripten#8905

@quantum5
Copy link
Member

quantum5 commented Jul 3, 2019

This seem to break stuff in the PIC case. Let me get you a test case.

@quantum5
Copy link
Member

quantum5 commented Jul 3, 2019

Never mind, it seems to be something else.

We were passing bad value in --initial-stack-pointer which did not
include the STATIC_BUMP (since STATIC_BUMP is determinted by the output
of finalize).

If emscripten wants to set the stack pointer position it can do
so by calling the stackRestore() function at startup.

This argument will be removed completely once we stop passing it on the
emscripten side.

See emscripten-core/emscripten#8905
@sbc100 sbc100 merged commit be0a20c into master Jul 10, 2019
@sbc100 sbc100 deleted the remove_stack_init branch July 10, 2019 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants