aboutsummaryrefslogtreecommitdiff
path: root/packages/uClibc-ng/1.0.48/0007-libpthread-drop-protected-attribute-from-__pthread_k.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/uClibc-ng/1.0.48/0007-libpthread-drop-protected-attribute-from-__pthread_k.patch')
-rw-r--r--packages/uClibc-ng/1.0.48/0007-libpthread-drop-protected-attribute-from-__pthread_k.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/packages/uClibc-ng/1.0.48/0007-libpthread-drop-protected-attribute-from-__pthread_k.patch b/packages/uClibc-ng/1.0.48/0007-libpthread-drop-protected-attribute-from-__pthread_k.patch
new file mode 100644
index 00000000..4d541d33
--- /dev/null
+++ b/packages/uClibc-ng/1.0.48/0007-libpthread-drop-protected-attribute-from-__pthread_k.patch
@@ -0,0 +1,34 @@
+From 55840f6209cf1169b1332d262fc8a9d2108e753d Mon Sep 17 00:00:00 2001
+From: Chris Packham <chris.packham@alliedtelesis.co.nz>
+Date: Tue, 5 Sep 2023 21:14:32 +1200
+Subject: [PATCH 7/7] libpthread: drop protected attribute from
+ __pthread_key_create
+
+Building some C++ code with uclibc-ng, binutils-2.40 and gcc-13.2.0 we
+get the following error
+
+ ld.bfd: isl_test2.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
+
+Drop the protected attribute to avoid the error.
+
+Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
+---
+ libpthread/nptl/pthread_key_create.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/libpthread/nptl/pthread_key_create.c b/libpthread/nptl/pthread_key_create.c
+index 6e11bbeae..87999764e 100644
+--- a/libpthread/nptl/pthread_key_create.c
++++ b/libpthread/nptl/pthread_key_create.c
+@@ -22,7 +22,6 @@
+
+
+ int
+-attribute_protected
+ __pthread_key_create (
+ pthread_key_t *key,
+ void (*destr) (void *))
+--
+2.43.2
+