[PATCH 2/3] NPTL/ARC: fix __lll_lock_wait_private redefinition for static links

Vineet Gupta Vineet.Gupta1 at synopsys.com
Wed Oct 21 07:12:24 UTC 2015


Commit 2d9740a65a "uclibc: nptl: fix __lll_lock_wait_private multiple definition"
did a sweeping change which did for all in tree arches at that time (ARC
wasn't)

Signed-off-by: Vineet Gupta <vgupta at synopsys.com>
---
 libpthread/nptl/sysdeps/unix/sysv/linux/arc/lowlevellock.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/arc/lowlevellock.c b/libpthread/nptl/sysdeps/unix/sysv/linux/arc/lowlevellock.c
index 1aa79609a713..fd39fe907444 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/arc/lowlevellock.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/arc/lowlevellock.c
@@ -24,8 +24,10 @@
 #include <tls.h>
 #include <tcb-offsets.h>
 
-
 void
+#ifndef IS_IN_libpthread
+weak_function
+#endif
 __lll_lock_wait_private (int *futex)
 {
   if (*futex == 2)
-- 
1.9.1



More information about the uClibc mailing list