From ba8d113a7a4c1947ad75d78418ce749a9e6405d4 Mon Sep 17 00:00:00 2001 From: cjplummer Date: Tue, 26 May 2015 11:26:50 -0700 Subject: [PATCH] 8051712: regression Test7107135 crashes Summary: On AARCH64, make ElfFile::specifies_noexecstack() default to noexectstack Reviewed-by: dholmes, dlong, aph --- src/share/vm/utilities/elfFile.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/share/vm/utilities/elfFile.cpp b/src/share/vm/utilities/elfFile.cpp index 3d8959563..ac943bd15 100644 --- a/src/share/vm/utilities/elfFile.cpp +++ b/src/share/vm/utilities/elfFile.cpp @@ -261,7 +261,12 @@ bool ElfFile::specifies_noexecstack() { } } } +// AARCH64 defaults to noexecstack. All others default to execstack. +#ifdef AARCH64 + return true; +#else return false; +#endif } #endif -- GitLab