< prev index next >
test/hotspot/jtreg/runtime/execstack/TestCheckJDK.java
Print this page
8209817: stack is executable when building with Clang on Linux
Reviewed-by: dholmes, martin, mikael, ihse
Contributed-by: Arthur Eubanks <aeubanks@google.com>
@@ -46,11 +46,12 @@
static boolean testPassed = true;
private static final WhiteBox WB = WhiteBox.getWhiteBox();
static void checkExecStack(Path file) {
String filename = file.toString();
- if (filename.endsWith(".so")) {
+ Path parent = file.getParent();
+ if (parent.endsWith("bin") || filename.endsWith(".so")) {
if (!WB.checkLibSpecifiesNoexecstack(filename)) {
System.out.println("Library does not have the noexecstack bit set: " + filename);
testPassed = false;
}
}
< prev index next >