nptl: Remove pthread raise implementation
The Linux version already target the current thread by using tgkill along with getpid and gettid. For arm, libpthread does not do a intra PLT since it will call the raise from libc. Checked on x86_64-linux-gnu.
This commit is contained in:
parent
b76658451c
commit
ff1e342cd1
|
@ -103,7 +103,6 @@ libpthread-routines = \
|
|||
pt-cleanup \
|
||||
pt-interp \
|
||||
pt-longjmp \
|
||||
pt-raise \
|
||||
pthread_attr_getaffinity \
|
||||
pthread_attr_getguardsize \
|
||||
pthread_attr_getstack \
|
||||
|
|
|
@ -161,7 +161,6 @@ libpthread {
|
|||
pthread_setspecific;
|
||||
pthread_sigmask;
|
||||
pthread_testcancel;
|
||||
raise;
|
||||
sem_destroy;
|
||||
sem_getvalue;
|
||||
sem_init;
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
/* ISO C raise function for libpthread.
|
||||
Copyright (C) 2002-2021 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <pthread.h>
|
||||
#include <signal.h>
|
||||
|
||||
|
||||
int
|
||||
raise (int sig)
|
||||
{
|
||||
/* This is what POSIX says must happen. */
|
||||
return pthread_kill (pthread_self (), sig);
|
||||
}
|
|
@ -136,7 +136,6 @@ GLIBC_2.17 pthread_testcancel F
|
|||
GLIBC_2.17 pthread_timedjoin_np F
|
||||
GLIBC_2.17 pthread_tryjoin_np F
|
||||
GLIBC_2.17 pthread_yield F
|
||||
GLIBC_2.17 raise F
|
||||
GLIBC_2.17 sem_close F
|
||||
GLIBC_2.17 sem_destroy F
|
||||
GLIBC_2.17 sem_getvalue F
|
||||
|
|
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_setcancelstate F
|
|||
GLIBC_2.0 pthread_setcanceltype F
|
||||
GLIBC_2.0 pthread_setspecific F
|
||||
GLIBC_2.0 pthread_testcancel F
|
||||
GLIBC_2.0 raise F
|
||||
GLIBC_2.0 sem_destroy F
|
||||
GLIBC_2.0 sem_getvalue F
|
||||
GLIBC_2.0 sem_init F
|
||||
|
|
|
@ -155,7 +155,6 @@ GLIBC_2.32 pthread_testcancel F
|
|||
GLIBC_2.32 pthread_timedjoin_np F
|
||||
GLIBC_2.32 pthread_tryjoin_np F
|
||||
GLIBC_2.32 pthread_yield F
|
||||
GLIBC_2.32 raise F
|
||||
GLIBC_2.32 sem_clockwait F
|
||||
GLIBC_2.32 sem_close F
|
||||
GLIBC_2.32 sem_destroy F
|
||||
|
|
|
@ -165,7 +165,6 @@ GLIBC_2.4 pthread_testcancel F
|
|||
GLIBC_2.4 pthread_timedjoin_np F
|
||||
GLIBC_2.4 pthread_tryjoin_np F
|
||||
GLIBC_2.4 pthread_yield F
|
||||
GLIBC_2.4 raise F
|
||||
GLIBC_2.4 sem_close F
|
||||
GLIBC_2.4 sem_destroy F
|
||||
GLIBC_2.4 sem_getvalue F
|
||||
|
|
|
@ -165,7 +165,6 @@ GLIBC_2.4 pthread_testcancel F
|
|||
GLIBC_2.4 pthread_timedjoin_np F
|
||||
GLIBC_2.4 pthread_tryjoin_np F
|
||||
GLIBC_2.4 pthread_yield F
|
||||
GLIBC_2.4 raise F
|
||||
GLIBC_2.4 sem_close F
|
||||
GLIBC_2.4 sem_destroy F
|
||||
GLIBC_2.4 sem_getvalue F
|
||||
|
|
|
@ -5,7 +5,6 @@ libc.so: memalign
|
|||
libc.so: raise
|
||||
libc.so: realloc
|
||||
libm.so: matherr
|
||||
libpthread.so: raise
|
||||
# The dynamic loader needs __tls_get_addr for TLS.
|
||||
ld.so: __tls_get_addr
|
||||
# The TLS-enabled version of these functions is interposed from libc.so.
|
||||
|
|
|
@ -150,7 +150,6 @@ GLIBC_2.29 pthread_testcancel F
|
|||
GLIBC_2.29 pthread_timedjoin_np F
|
||||
GLIBC_2.29 pthread_tryjoin_np F
|
||||
GLIBC_2.29 pthread_yield F
|
||||
GLIBC_2.29 raise F
|
||||
GLIBC_2.29 sem_close F
|
||||
GLIBC_2.29 sem_destroy F
|
||||
GLIBC_2.29 sem_getvalue F
|
||||
|
|
|
@ -116,7 +116,6 @@ GLIBC_2.2 pthread_spin_trylock F
|
|||
GLIBC_2.2 pthread_spin_unlock F
|
||||
GLIBC_2.2 pthread_testcancel F
|
||||
GLIBC_2.2 pthread_yield F
|
||||
GLIBC_2.2 raise F
|
||||
GLIBC_2.2 sem_close F
|
||||
GLIBC_2.2 sem_destroy F
|
||||
GLIBC_2.2 sem_getvalue F
|
||||
|
|
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_setcancelstate F
|
|||
GLIBC_2.0 pthread_setcanceltype F
|
||||
GLIBC_2.0 pthread_setspecific F
|
||||
GLIBC_2.0 pthread_testcancel F
|
||||
GLIBC_2.0 raise F
|
||||
GLIBC_2.0 sem_destroy F
|
||||
GLIBC_2.0 sem_getvalue F
|
||||
GLIBC_2.0 sem_init F
|
||||
|
|
|
@ -116,7 +116,6 @@ GLIBC_2.2 pthread_spin_trylock F
|
|||
GLIBC_2.2 pthread_spin_unlock F
|
||||
GLIBC_2.2 pthread_testcancel F
|
||||
GLIBC_2.2 pthread_yield F
|
||||
GLIBC_2.2 raise F
|
||||
GLIBC_2.2 sem_close F
|
||||
GLIBC_2.2 sem_destroy F
|
||||
GLIBC_2.2 sem_getvalue F
|
||||
|
|
|
@ -165,7 +165,6 @@ GLIBC_2.4 pthread_testcancel F
|
|||
GLIBC_2.4 pthread_timedjoin_np F
|
||||
GLIBC_2.4 pthread_tryjoin_np F
|
||||
GLIBC_2.4 pthread_yield F
|
||||
GLIBC_2.4 raise F
|
||||
GLIBC_2.4 sem_close F
|
||||
GLIBC_2.4 sem_destroy F
|
||||
GLIBC_2.4 sem_getvalue F
|
||||
|
|
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_setcancelstate F
|
|||
GLIBC_2.0 pthread_setcanceltype F
|
||||
GLIBC_2.0 pthread_setspecific F
|
||||
GLIBC_2.0 pthread_testcancel F
|
||||
GLIBC_2.0 raise F
|
||||
GLIBC_2.0 sem_destroy F
|
||||
GLIBC_2.0 sem_getvalue F
|
||||
GLIBC_2.0 sem_init F
|
||||
|
|
|
@ -138,7 +138,6 @@ GLIBC_2.18 pthread_testcancel F
|
|||
GLIBC_2.18 pthread_timedjoin_np F
|
||||
GLIBC_2.18 pthread_tryjoin_np F
|
||||
GLIBC_2.18 pthread_yield F
|
||||
GLIBC_2.18 raise F
|
||||
GLIBC_2.18 sem_close F
|
||||
GLIBC_2.18 sem_destroy F
|
||||
GLIBC_2.18 sem_getvalue F
|
||||
|
|
|
@ -138,7 +138,6 @@ GLIBC_2.18 pthread_testcancel F
|
|||
GLIBC_2.18 pthread_timedjoin_np F
|
||||
GLIBC_2.18 pthread_tryjoin_np F
|
||||
GLIBC_2.18 pthread_yield F
|
||||
GLIBC_2.18 raise F
|
||||
GLIBC_2.18 sem_close F
|
||||
GLIBC_2.18 sem_destroy F
|
||||
GLIBC_2.18 sem_getvalue F
|
||||
|
|
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_setcancelstate F
|
|||
GLIBC_2.0 pthread_setcanceltype F
|
||||
GLIBC_2.0 pthread_setspecific F
|
||||
GLIBC_2.0 pthread_testcancel F
|
||||
GLIBC_2.0 raise F
|
||||
GLIBC_2.0 sem_destroy F
|
||||
GLIBC_2.0 sem_getvalue F
|
||||
GLIBC_2.0 sem_init F
|
||||
|
|
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_setcancelstate F
|
|||
GLIBC_2.0 pthread_setcanceltype F
|
||||
GLIBC_2.0 pthread_setspecific F
|
||||
GLIBC_2.0 pthread_testcancel F
|
||||
GLIBC_2.0 raise F
|
||||
GLIBC_2.0 sem_destroy F
|
||||
GLIBC_2.0 sem_getvalue F
|
||||
GLIBC_2.0 sem_init F
|
||||
|
|
|
@ -138,7 +138,6 @@ GLIBC_2.21 pthread_testcancel F
|
|||
GLIBC_2.21 pthread_timedjoin_np F
|
||||
GLIBC_2.21 pthread_tryjoin_np F
|
||||
GLIBC_2.21 pthread_yield F
|
||||
GLIBC_2.21 raise F
|
||||
GLIBC_2.21 sem_close F
|
||||
GLIBC_2.21 sem_destroy F
|
||||
GLIBC_2.21 sem_getvalue F
|
||||
|
|
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_setcancelstate F
|
|||
GLIBC_2.0 pthread_setcanceltype F
|
||||
GLIBC_2.0 pthread_setspecific F
|
||||
GLIBC_2.0 pthread_testcancel F
|
||||
GLIBC_2.0 raise F
|
||||
GLIBC_2.0 sem_destroy F
|
||||
GLIBC_2.0 sem_getvalue F
|
||||
GLIBC_2.0 sem_init F
|
||||
|
|
|
@ -136,7 +136,6 @@ GLIBC_2.3 pthread_spin_trylock F
|
|||
GLIBC_2.3 pthread_spin_unlock F
|
||||
GLIBC_2.3 pthread_testcancel F
|
||||
GLIBC_2.3 pthread_yield F
|
||||
GLIBC_2.3 raise F
|
||||
GLIBC_2.3 sem_close F
|
||||
GLIBC_2.3 sem_destroy F
|
||||
GLIBC_2.3 sem_getvalue F
|
||||
|
|
|
@ -136,7 +136,6 @@ GLIBC_2.17 pthread_testcancel F
|
|||
GLIBC_2.17 pthread_timedjoin_np F
|
||||
GLIBC_2.17 pthread_tryjoin_np F
|
||||
GLIBC_2.17 pthread_yield F
|
||||
GLIBC_2.17 raise F
|
||||
GLIBC_2.17 sem_close F
|
||||
GLIBC_2.17 sem_destroy F
|
||||
GLIBC_2.17 sem_getvalue F
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
/* ISO C raise function for libpthread.
|
||||
Copyright (C) 2002-2021 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sysdeps/unix/sysv/linux/raise.c>
|
|
@ -155,7 +155,6 @@ GLIBC_2.33 pthread_testcancel F
|
|||
GLIBC_2.33 pthread_timedjoin_np F
|
||||
GLIBC_2.33 pthread_tryjoin_np F
|
||||
GLIBC_2.33 pthread_yield F
|
||||
GLIBC_2.33 raise F
|
||||
GLIBC_2.33 sem_clockwait F
|
||||
GLIBC_2.33 sem_close F
|
||||
GLIBC_2.33 sem_destroy F
|
||||
|
|
|
@ -137,7 +137,6 @@ GLIBC_2.27 pthread_testcancel F
|
|||
GLIBC_2.27 pthread_timedjoin_np F
|
||||
GLIBC_2.27 pthread_tryjoin_np F
|
||||
GLIBC_2.27 pthread_yield F
|
||||
GLIBC_2.27 raise F
|
||||
GLIBC_2.27 sem_close F
|
||||
GLIBC_2.27 sem_destroy F
|
||||
GLIBC_2.27 sem_getvalue F
|
||||
|
|
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_setcancelstate F
|
|||
GLIBC_2.0 pthread_setcanceltype F
|
||||
GLIBC_2.0 pthread_setspecific F
|
||||
GLIBC_2.0 pthread_testcancel F
|
||||
GLIBC_2.0 raise F
|
||||
GLIBC_2.0 sem_destroy F
|
||||
GLIBC_2.0 sem_getvalue F
|
||||
GLIBC_2.0 sem_init F
|
||||
|
|
|
@ -118,7 +118,6 @@ GLIBC_2.2 pthread_spin_trylock F
|
|||
GLIBC_2.2 pthread_spin_unlock F
|
||||
GLIBC_2.2 pthread_testcancel F
|
||||
GLIBC_2.2 pthread_yield F
|
||||
GLIBC_2.2 raise F
|
||||
GLIBC_2.2 sem_close F
|
||||
GLIBC_2.2 sem_destroy F
|
||||
GLIBC_2.2 sem_getvalue F
|
||||
|
|
|
@ -116,7 +116,6 @@ GLIBC_2.2 pthread_spin_trylock F
|
|||
GLIBC_2.2 pthread_spin_unlock F
|
||||
GLIBC_2.2 pthread_testcancel F
|
||||
GLIBC_2.2 pthread_yield F
|
||||
GLIBC_2.2 raise F
|
||||
GLIBC_2.2 sem_close F
|
||||
GLIBC_2.2 sem_destroy F
|
||||
GLIBC_2.2 sem_getvalue F
|
||||
|
|
|
@ -116,7 +116,6 @@ GLIBC_2.2 pthread_spin_trylock F
|
|||
GLIBC_2.2 pthread_spin_unlock F
|
||||
GLIBC_2.2 pthread_testcancel F
|
||||
GLIBC_2.2 pthread_yield F
|
||||
GLIBC_2.2 raise F
|
||||
GLIBC_2.2 sem_close F
|
||||
GLIBC_2.2 sem_destroy F
|
||||
GLIBC_2.2 sem_getvalue F
|
||||
|
|
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_setcancelstate F
|
|||
GLIBC_2.0 pthread_setcanceltype F
|
||||
GLIBC_2.0 pthread_setspecific F
|
||||
GLIBC_2.0 pthread_testcancel F
|
||||
GLIBC_2.0 raise F
|
||||
GLIBC_2.0 sem_destroy F
|
||||
GLIBC_2.0 sem_getvalue F
|
||||
GLIBC_2.0 sem_init F
|
||||
|
|
|
@ -116,7 +116,6 @@ GLIBC_2.2 pthread_spin_trylock F
|
|||
GLIBC_2.2 pthread_spin_unlock F
|
||||
GLIBC_2.2 pthread_testcancel F
|
||||
GLIBC_2.2 pthread_yield F
|
||||
GLIBC_2.2 raise F
|
||||
GLIBC_2.2 sem_close F
|
||||
GLIBC_2.2 sem_destroy F
|
||||
GLIBC_2.2 sem_getvalue F
|
||||
|
|
|
@ -116,7 +116,6 @@ GLIBC_2.2.5 pthread_spin_trylock F
|
|||
GLIBC_2.2.5 pthread_spin_unlock F
|
||||
GLIBC_2.2.5 pthread_testcancel F
|
||||
GLIBC_2.2.5 pthread_yield F
|
||||
GLIBC_2.2.5 raise F
|
||||
GLIBC_2.2.5 sem_close F
|
||||
GLIBC_2.2.5 sem_destroy F
|
||||
GLIBC_2.2.5 sem_getvalue F
|
||||
|
|
|
@ -136,7 +136,6 @@ GLIBC_2.16 pthread_testcancel F
|
|||
GLIBC_2.16 pthread_timedjoin_np F
|
||||
GLIBC_2.16 pthread_tryjoin_np F
|
||||
GLIBC_2.16 pthread_yield F
|
||||
GLIBC_2.16 raise F
|
||||
GLIBC_2.16 sem_close F
|
||||
GLIBC_2.16 sem_destroy F
|
||||
GLIBC_2.16 sem_getvalue F
|
||||
|
|
Loading…
Reference in New Issue