[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/29263] /usr/bin/ld: warning: /usr/lib/gcc/hppa-linux-gnu/11/../.

From: nickc at redhat dot com
Subject: [Bug ld/29263] /usr/bin/ld: warning: /usr/lib/gcc/hppa-linux-gnu/11/../../../hppa-linux-gnu/crtn.o: missing .note.GNU-stack section implies executable stack
Date: Mon, 20 Jun 2022 16:37:42 +0000


--- 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.  */

> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]