From a0a10f58e57b631f07dc79d51fb6ac295ad727da Mon Sep 17 00:00:00 2001 From: Hans-Christian Noren Egtvedt Date: Fri, 25 Apr 2025 18:19:37 +0200 Subject: gcc: Add 15.1.0 https://gcc.gnu.org/pipermail/gcc-announce/2025/000185.html See upstream changes at https://gcc.gnu.org/gcc-15/changes.html Add the new version clean up the patches. Remove GCC 14 patches applied to GCC 15. Signed-off-by: Hans-Christian Noren Egtvedt --- ...cc-Exclude-UCLIBC-from-GLIBC-thread-check.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 packages/gcc/15.1.0/0010-libgcc-Exclude-UCLIBC-from-GLIBC-thread-check.patch (limited to 'packages/gcc/15.1.0/0010-libgcc-Exclude-UCLIBC-from-GLIBC-thread-check.patch') diff --git a/packages/gcc/15.1.0/0010-libgcc-Exclude-UCLIBC-from-GLIBC-thread-check.patch b/packages/gcc/15.1.0/0010-libgcc-Exclude-UCLIBC-from-GLIBC-thread-check.patch new file mode 100644 index 00000000..f5c3e1fd --- /dev/null +++ b/packages/gcc/15.1.0/0010-libgcc-Exclude-UCLIBC-from-GLIBC-thread-check.patch @@ -0,0 +1,30 @@ +From d901175d36221fbf79a0eb8305823b88243b829c Mon Sep 17 00:00:00 2001 +From: Chris Packham +Date: Thu, 7 Sep 2023 19:26:49 +1200 +Subject: [PATCH] libgcc: Exclude UCLIBC from GLIBC thread check + +UBLIBC defines __GLIBC__ but also marks __pthread_key_create() as +protected. Leading to link errors with newer binutils such as: + + ld.bfd: isl_test_cpp17.o: non-canonical reference to canonical protected function `__pthread_key_create' in x86_64-multilib-linux-uclibc/sysroot/lib64/libc.so.1 + ld.bfd: failed to set dynamic section sizes: bad value + +Add a condition on !__UCLIBC__ when selecting a symbol to detect pthread +usage so it picks the intended pthread_cancel(). + +Signed-off-by: Chris Packham +--- + libgcc/gthr-posix.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/libgcc/gthr-posix.h ++++ b/libgcc/gthr-posix.h +@@ -270,7 +270,7 @@ __gthread_active_p (void) + library does not provide pthread_cancel, so we do use pthread_create + there (and interceptor libraries lose). */ + +-#ifdef __GLIBC__ ++#if defined(__GLIBC__) && !defined(__UCLIBC__) + __gthrw2(__gthrw_(__pthread_key_create), + __pthread_key_create, + pthread_key_create) -- cgit v1.2.3