diff mbox series

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

Message ID cba66f08-2c34-d4b8-2b1c-a0c192889f87@bell.net
State New
Headers show
Series [committed] Disable use of GNU-stack notes on hppa-linux | expand

Commit Message

John David Anglin May 27, 2018, 10:01 p.m. UTC
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
diff mbox series

Patch

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