https://gcc.gnu.org/g:8b26ee407613cdbfc3fb2095c09ae28b4642fd63
commit r12-11087-g8b26ee407613cdbfc3fb2095c09ae28b4642fd63 Author: John David Anglin <dang...@gcc.gnu.org> Date: Mon Nov 6 20:33:15 2023 +0000 Enable generation of GNU stack notes on Linux 2023-11-06 John David Anglin <dang...@gcc.gnu.org> * config/pa/pa-linux.h (NEED_INDICATE_EXEC_STACK): Define to 1. Diff: --- gcc/config/pa/pa-linux.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gcc/config/pa/pa-linux.h b/gcc/config/pa/pa-linux.h index 5af11a1df804..f467d3acbb99 100644 --- a/gcc/config/pa/pa-linux.h +++ b/gcc/config/pa/pa-linux.h @@ -147,8 +147,7 @@ along with GCC; see the file COPYING3. If not see #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. */ +/* Enable GNU stack notes. */ #undef NEED_INDICATE_EXEC_STACK -#define NEED_INDICATE_EXEC_STACK 0 +#define NEED_INDICATE_EXEC_STACK 1