This is apparently what a `.note.GNU-stack' section does.
\f
IFDASM(`end')
+# Mark the stack nonexecutable. If we ever put code (e.g.,
+# dynamic-extent closure entry points) on the stack, this would have
+# to change.
+
+ifdef(`__linux__', `ifdef(`__ELF__', `.section .note.GNU-stack,"",%progbits')')
+
### Edwin Variables:
### comment-column: 56
### End:
\f
IFDASM(`end')
+# Mark the stack nonexecutable. If we ever put code (e.g.,
+# dynamic-extent closure entry points) on the stack, this would have
+# to change.
+
+ifdef(`__linux__', `ifdef(`__ELF__', `.section .note.GNU-stack,"",%progbits')')
+
### Edwin Variables:
### comment-column: 56
### comment-start: "#"
GNU_LD=no
case ${host_os} in
linux-gnu)
+ M4_FLAGS="${M4_FLAGS} -P __linux__,1"
DO_GCC_TESTS=yes
GNU_LD=yes
;;
[
AC_MSG_RESULT([yes])
M4_FLAGS="${M4_FLAGS} -P SUPPRESS_LEADING_UNDERSCORE,1"
+ M4_FLAGS="${M4_FLAGS} -P __ELF__,1"
],
[AC_MSG_RESULT([no])])
fi