https://sourceware.org/bugzilla/show_bug.cgi?id=29263
--- Comment #6 from Nick Clifton <nickc at redhat dot com> --- (In reply to dave.anglin from comment #3) Hi Dave, > Unfortunately, this doesn't happen on hppa-linux because we have: > > /* 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 0 > I can't just enable the generation of GNU_stack notes since old kernels are > still prevalent. OK, so if you need to support older kernels, then is it possible for you to use the configure option --enable-warn-execstack=no instead ? > --no-warn-execstack doesn't suppress all the warnings: > > dave@mx3210:~/shmat$ gcc main.c -Wl,--no-warn-execstack > /usr/bin/ld: warning: a.out has a LOAD segment with RWX permissions That warning can be disabled with --no-warn-rwx-segments and disabled by configuring with --enable-warn-rwx-segments=no > What is best way to transition without causing a lot of disruption? How about a patch like the one I am about to upload ? It sets the defaults for these two warnings to 'ignore' for HPPA targets. (I do not know if it is possible to determine the kernel version from the configuration string, so the patch changes the default for all HPPA variants). -- You are receiving this mail because: You are on the CC list for the bug.