Skip to content

Use explicit linker generated high/low symbols to determine stack bounds. NFC #18057

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

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Oct 13, 2022

@sbc100
Copy link
Collaborator Author

sbc100 commented Oct 13, 2022

sbc100 added a commit to llvm/llvm-project that referenced this pull request Oct 13, 2022
Currently emscripten is make assumptions about that memory layout,
assuming the stack is between `__data_end` and `__heap_base`:

https://github.com/emscripten-core/emscripten/blob/af961ad5c4c278ec510f0b7f7d522a95ee5a90f8/system/lib/compiler-rt/stack_limits.S#L42-L61

With this change we can be more precise:

emscripten-core/emscripten#18057

Differential Revision: https://reviews.llvm.org/D135910
@sbc100 sbc100 requested a review from kripken October 17, 2022 22:35
@sbc100 sbc100 changed the title Use explicit linker generated high/low symbols to determine stack bound. Use explicit linker generated high/low symbols to determine stack bounds. NFC Oct 17, 2022
@sbc100 sbc100 merged commit 830fcb8 into main Oct 17, 2022
@sbc100 sbc100 deleted the stack_symbols branch October 17, 2022 23:52
veselypeta pushed a commit to veselypeta/cherillvm that referenced this pull request May 28, 2024
Currently emscripten is make assumptions about that memory layout,
assuming the stack is between `__data_end` and `__heap_base`:

https://github.com/emscripten-core/emscripten/blob/af961ad5c4c278ec510f0b7f7d522a95ee5a90f8/system/lib/compiler-rt/stack_limits.S#L42-L61

With this change we can be more precise:

emscripten-core/emscripten#18057

Differential Revision: https://reviews.llvm.org/D135910
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.

2 participants