-
Bug
-
Resolution: Fixed
-
P3
-
11
-
b13
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8236620 | 11.0.7 | Martin Buchholz | P3 | Resolved | Fixed | b01 |
At Google we're attempting to build hotspot on Linux with Clang.
One issue is that the resulting libjvm.so is stack executable. When running
hotspot, warnings are emitted about the stack being executable.
"""
OpenJDK 64-Bit Server VM warning: You have loaded library ...build/linux-x86_64-normal-server-release/jdk/lib/server/libjvm.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
OpenJDK 64-Bit Server VM warning: Unable to fix stack guard. Giving up.
"""
Consensus from the build-dev list suggests that "-Wl,-z,noexecstack" should be added as a build linker option for Clang in flags-ldflags.m4.
One issue is that the resulting libjvm.so is stack executable. When running
hotspot, warnings are emitted about the stack being executable.
"""
OpenJDK 64-Bit Server VM warning: You have loaded library ...build/linux-x86_64-normal-server-release/jdk/lib/server/libjvm.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
OpenJDK 64-Bit Server VM warning: Unable to fix stack guard. Giving up.
"""
Consensus from the build-dev list suggests that "-Wl,-z,noexecstack" should be added as a build linker option for Clang in flags-ldflags.m4.
- backported by
-
JDK-8236620 stack is executable when building with Clang on Linux
- Resolved
- relates to
-
JDK-8205457 gcc and clang should use the same ld flags
- Open