public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5760] [PATCH v2] configure: define TARGET_LIBC_GNUSTACK on musl
@ 2021-12-02 20:47 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2021-12-02 20:47 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:25abbb9249685c8519d06e1d98cd6803568b6eb7

commit r12-5760-g25abbb9249685c8519d06e1d98cd6803568b6eb7
Author: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Date:   Thu Dec 2 15:47:11 2021 -0500

    [PATCH v2] configure: define TARGET_LIBC_GNUSTACK on musl
    
    musl only uses PT_GNU_STACK to set default thread stack size and has no
    executable stack support[0], so there is no reason not to emit the
    .note.GNU-stack section on musl builds.
    
    [0]: https://lore.kernel.org/all/20190423192534.GN23599@brightrain.aerifal.cx/T/#u
    
    gcc
    
            * configure: Regenerate.
            * configure.ac: Define TARGET_LIBC_GNUSTACK on musl.

Diff:
---
 gcc/configure    | 3 +++
 gcc/configure.ac | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/gcc/configure b/gcc/configure
index a5160da83ec..665a0fceabe 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -31381,6 +31381,9 @@ fi
 # Check if the target LIBC handles PT_GNU_STACK.
 gcc_cv_libc_gnustack=unknown
 case "$target" in
+  mips*-*-linux-musl*)
+    gcc_cv_libc_gnustack=yes
+    ;;
   mips*-*-linux*)
 
 if test $glibc_version_major -gt 2 \
diff --git a/gcc/configure.ac b/gcc/configure.ac
index df4d2d8863c..51f9022692a 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -6963,6 +6963,9 @@ fi
 # Check if the target LIBC handles PT_GNU_STACK.
 gcc_cv_libc_gnustack=unknown
 case "$target" in
+  mips*-*-linux-musl*)
+    gcc_cv_libc_gnustack=yes
+    ;;
   mips*-*-linux*)
     GCC_GLIBC_VERSION_GTE_IFELSE([2], [31], [gcc_cv_libc_gnustack=yes], )
     ;;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-02 20:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-02 20:47 [gcc r12-5760] [PATCH v2] configure: define TARGET_LIBC_GNUSTACK on musl Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).