OSDN Git Service

ARC/NPTL: Fix __libc_sigaction redefinition with static links
authorVineet Gupta <vgupta@synopsys.com>
Fri, 25 Jul 2014 12:09:06 +0000 (17:39 +0530)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 18 Aug 2014 09:52:34 +0000 (11:52 +0200)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libpthread/nptl/sysdeps/unix/sysv/linux/arc/pt-__syscall_rt_sigaction.c

index 3466518..967dad1 100644 (file)
@@ -4,4 +4,10 @@
  * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
  */
 
  * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
  */
 
-#include <../../../../../../../libc/sysdeps/linux/arc/sigaction.c>
+/*
+ * ARC syscall ABI only has __NR_rt_sigaction, thus vanilla sigaction does
+ * some SA_RESTORER tricks before calling __syscall_rt_sigaction.
+ * However including that file here causes a redefinition of __libc_sigaction
+ * in static links involving pthreads
+ */
+//#include <../../../../../../../libc/sysdeps/linux/arc/sigaction.c>