[PATCH] toolchain/gcc: ensure PT_GNU_STACK usage with musl

Ilya Lipnitskiy ilya.lipnitskiy at gmail.com
Sun Nov 14 20:51:04 PST 2021


musl supports it since v1.1.21, but GCC only automatically enables it
for glibc 2.31+

Link: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=54b3d52c3cca836c7c4c08cc9c02eda6c096372a

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy at gmail.com>
---
 toolchain/gcc/final/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/toolchain/gcc/final/Makefile b/toolchain/gcc/final/Makefile
index 0315b9d1f163..ccdd368b6831 100644
--- a/toolchain/gcc/final/Makefile
+++ b/toolchain/gcc/final/Makefile
@@ -17,6 +17,7 @@ endif
 
 ifdef CONFIG_USE_MUSL
   GCC_MAKE += gcc_cv_libc_provides_ssp=yes
+  GCC_MAKE += gcc_cv_libc_gnustack=yes
 endif
 
 ifneq ($(CONFIG_SJLJ_EXCEPTIONS),)
-- 
2.33.1




More information about the openwrt-devel mailing list