--- old/test/hotspot/jtreg/runtime/execstack/TestCheckJDK.java 2018-09-19 10:51:47.995203675 -0700 +++ new/test/hotspot/jtreg/runtime/execstack/TestCheckJDK.java 2018-09-19 10:51:47.543203680 -0700 @@ -48,7 +48,8 @@ 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;