-
Notifications
You must be signed in to change notification settings - Fork 738
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
Link j9jit library without execstack flag on Linux #21135
Conversation
Jenkins test sanity.functional xlinux,plinux,zlinux,alinux64 jdk17 |
@keithc-ca do you think we need to include the same for other modules, such a the VM? |
@@ -395,7 +395,7 @@ set_source_files_properties( | |||
|
|||
if(OMR_OS_LINUX) | |||
set_property(TARGET j9jit APPEND_STRING PROPERTY | |||
LINK_FLAGS " -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/build/scripts/j9jit.linux.exp") | |||
LINK_FLAGS " -Wl,-z,noexecstack -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/build/scripts/j9jit.linux.exp") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a single assembler were used on each platform, this should not be necessary (see #20956 (comment)).
This seems a reasonable, perhaps short-term, solution.
I think only the JIT uses more than one assembler and so only that shared library needs this change. |
Using |
Thanks, Fridrich! 🙂 |
Fixes #20956