[committed] Disable use of GNU-stack notes on hppa-linux

John David Anglin dave.anglin@bell.net
Mon May 28 06:50:00 GMT 2018


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.anglin@bell.net

-------------- next part --------------
2018-05-27  John David Anglin  <danglin@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


More information about the Gcc-patches mailing list