The attached change disables the use of GNU-stack notes on hppa-linux.
The Linux kernel
requires an executable stack for syscall restarts and signal returns.
Enabling GNU-stack notes
breaks glibc signal handling.
Committed to trunk and gcc-8 branch.
Dave
--
John David Anglin dave.ang...@bell.net
2018-05-27 John David Anglin <dang...@gcc.gnu.org>
* config/pa/pa-linux.h (NEED_INDICATE_EXEC_STACK): Define to 0.
Index: config/pa/pa-linux.h
===================================================================
--- config/pa/pa-linux.h (revision 260792)
+++ config/pa/pa-linux.h (working copy)
@@ -142,5 +142,8 @@
#define HAVE_sync_compare_and_swapsi 1
#define HAVE_sync_compare_and_swapdi 1
+/* It's not possible to enable GNU_stack notes since the kernel needs
+ an executable stack for signal returns and syscall restarts. */
+
#undef NEED_INDICATE_EXEC_STACK
-#define NEED_INDICATE_EXEC_STACK 1
+#define NEED_INDICATE_EXEC_STACK 0