diff --git a/src/share/vm/utilities/elfFile.cpp b/src/share/vm/utilities/elfFile.cpp index 3d8959563155a49fe27cab623072fd121b01f0e0..ac943bd154cb75a481edea94e4b1768f5f034333 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