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-backend: PIC stack placement #8915
Projects
Comments
This is currently preventing |
sbc100
added a commit
to WebAssembly/binaryen
that referenced
this issue
Jul 10, 2019
I'm working on a change to lld that will cause `-pie` binaries to import __stack_pointer, just like -shared do already. Because we don't yet support mutable globals everywhere this change will internalize the import and create a new immutable import that is used to initialize the internal one. This change is part of the fix for: emscripten-core/emscripten#8915
sbc100
added a commit
to WebAssembly/binaryen
that referenced
this issue
Jul 10, 2019
I'm working on a change to lld that will cause `-pie` binaries to import __stack_pointer, just like -shared do already. Because we don't yet support mutable globals everywhere this change will internalize the import and create a new immutable import that is used to initialize the internal one. This change is part of the fix for: emscripten-core/emscripten#8915
sbc100
added a commit
to WebAssembly/binaryen
that referenced
this issue
Jul 10, 2019
…2213) I'm working on a change to lld that will cause `-pie` binaries to import __stack_pointer, just like -shared do already. Because we don't yet support mutable globals everywhere this change will internalize the import and create a new immutable import that is used to initialize the internal one. This change is part of the fix for: emscripten-core/emscripten#8915
llvm-git-migration
pushed a commit
to llvm/llvm-project
that referenced
this issue
Jul 11, 2019
The -pie binary doesn't know that layout ahead of time so needs to import the stack pointer from the embedder, just like we do already for shared libraries. This change is needed in order to address: emscripten-core/emscripten#8915 Differential Revision: https://reviews.llvm.org/D64516 llvm-svn: 365771
This appears to be fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After WebAssembly/binaryen#2201, if we change
shared.Settings.GLOBAL_BASE = 1024
toshared.Settings.GLOBAL_BASE = 1048576
, and then we compile the test filetests/core/test_stack_placement.c
as PIC, we get:Without
-fPIC
, the test works:Before WebAssembly/binaryen#2201, the tests fail the same way with or without
-fPIC
:The text was updated successfully, but these errors were encountered: