From 29ff9055c80efe77a7130767a9fcb3ab8c67e8ce Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 24 Sep 2016 02:55:31 +0200 Subject: use a single libc and deduplicate threading code Similar to musl libc a single libc has many benefits and solves some open issues with uClibc-ng. - no pthread_mutex_* weak symbols exported anymore - applications no longer failing to link when either -lrt or -lpthread are missing for dynamic and static linking mode - smaller C library - slightly better runtime performance --- libpthread/nptl/sysdeps/unix/sysv/linux/arc/Makefile.arch | 3 +-- .../nptl/sysdeps/unix/sysv/linux/arc/pt-__syscall_error.c | 7 ------- .../sysdeps/unix/sysv/linux/arc/pt-__syscall_rt_sigaction.c | 13 ------------- 3 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 libpthread/nptl/sysdeps/unix/sysv/linux/arc/pt-__syscall_error.c delete mode 100644 libpthread/nptl/sysdeps/unix/sysv/linux/arc/pt-__syscall_rt_sigaction.c (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/arc') diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/arc/Makefile.arch b/libpthread/nptl/sysdeps/unix/sysv/linux/arc/Makefile.arch index 468e64692..fa5d530d4 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/arc/Makefile.arch +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/arc/Makefile.arch @@ -6,8 +6,7 @@ # libpthread_linux_arch_SSRC = -libpthread_linux_arch_CSRC = pthread_once.c \ - pt-__syscall_rt_sigaction.c pt-__syscall_error.c +libpthread_linux_arch_CSRC = pthread_once.c libc_linux_arch_CSRC = fork.c libc_linux_arch_SSRC = clone.S vfork.S diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/arc/pt-__syscall_error.c b/libpthread/nptl/sysdeps/unix/sysv/linux/arc/pt-__syscall_error.c deleted file mode 100644 index 8002e65c3..000000000 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/arc/pt-__syscall_error.c +++ /dev/null @@ -1,7 +0,0 @@ -/* - * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com) - * - * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball. - */ - -#include <../../../../../../../libc/sysdeps/linux/arc/__syscall_error.c> diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/arc/pt-__syscall_rt_sigaction.c b/libpthread/nptl/sysdeps/unix/sysv/linux/arc/pt-__syscall_rt_sigaction.c deleted file mode 100644 index 967dad1b0..000000000 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/arc/pt-__syscall_rt_sigaction.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com) - * - * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball. - */ - -/* - * 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> -- cgit v1.2.3