Skip to content

Comments

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

Merged
sbc100 merged 1 commit intomasterfrom
remove_stack_init
Jul 10, 2019
Merged

Ignore --initial-stack-pointer arg to wasm-emscripten-finalize#2201
sbc100 merged 1 commit intomasterfrom
remove_stack_init

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

@sbc100 sbc100 requested a review from jgravelle-google July 2, 2019 21:32
@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 force-pushed the remove_stack_init branch from b1d0bbe to e7d26a0 Compare July 4, 2019 17:40
@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.

3 participants