mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
d7382cc0e4
Every minor version bump of a major version will result in a huge patch diff because of the moving of all the patches from version e.g. 11.2.0 to 11.3.0. This commit only use the major version for the patch folders to differentiate between the different gcc versions. This will significantly improve the reviewing of the smaller version bump patches and help to see what really changed in a minor version bump. Signed-off-by: Nick Hainke <vincent@systemli.org>
47 lines
1.3 KiB
Diff
47 lines
1.3 KiB
Diff
From ea650cae26da4a8fc04f0c4666f4dd776d0b5fc0 Mon Sep 17 00:00:00 2001
|
|
From: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
|
|
Date: Sun, 14 Nov 2021 21:54:25 -0800
|
|
Subject: [PATCH] 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/ChangeLog:
|
|
|
|
* configure: Regenerate.
|
|
* configure.ac: define TARGET_LIBC_GNUSTACK on musl
|
|
|
|
Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
|
|
---
|
|
gcc/configure | 3 +++
|
|
gcc/configure.ac | 3 +++
|
|
2 files changed, 6 insertions(+)
|
|
|
|
--- a/gcc/configure
|
|
+++ b/gcc/configure
|
|
@@ -31533,6 +31533,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 \
|
|
--- a/gcc/configure.ac
|
|
+++ b/gcc/configure.ac
|
|
@@ -7023,6 +7023,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], )
|
|
;;
|