Przeglądaj źródła

fix static builds of pthread apps for x86/x86_64

Found via buildroot autobuilder.
Waldemar Brodkorb 9 lat temu
rodzic
commit
76513cbe06

+ 6 - 0
libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S

@@ -70,6 +70,9 @@
 	.globl	__lll_lock_wait_private
 	.type	__lll_lock_wait_private,@function
 	.hidden	__lll_lock_wait_private
+#ifndef IS_IN_libpthread
+	.weak	__lll_lock_wait_private
+#endif
 	.align	16
 __lll_lock_wait_private:
 	cfi_startproc
@@ -320,6 +323,9 @@ __lll_timedlock_wait:
 	.globl	__lll_unlock_wake_private
 	.type	__lll_unlock_wake_private,@function
 	.hidden	__lll_unlock_wake_private
+#ifndef IS_IN_libpthread
+	.weak	__lll_unlock_wake_private
+#endif
 	.align	16
 __lll_unlock_wake_private:
 	cfi_startproc

+ 6 - 0
libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S

@@ -75,6 +75,9 @@
 	.globl	__lll_lock_wait_private
 	.type	__lll_lock_wait_private,@function
 	.hidden	__lll_lock_wait_private
+#ifndef IS_IN_libpthread
+	.weak   __lll_lock_wait_private
+#endif
 	.align	16
 __lll_lock_wait_private:
 	cfi_startproc
@@ -317,6 +320,9 @@ __lll_timedlock_wait:
 	.globl	__lll_unlock_wake_private
 	.type	__lll_unlock_wake_private,@function
 	.hidden	__lll_unlock_wake_private
+#ifndef IS_IN_libpthread
+	.weak	__lll_unlock_wake_private
+#endif
 	.align	16
 __lll_unlock_wake_private:
 	cfi_startproc