1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

nptl: Move mtx_init into libc

The symbol was moved using scripts/move-symbol-to-libc.py.

The calls to __pthread_mutex_init, __pthread_mutexattr_init,
__pthread_mutexattr_settype are now private and no longer need
to be exported.  This allows the removal of the newly added
GLIBC_2.34 symbol versions for those functions.

Also clean up some weak declarations in <libc-lockP.h> for
these functions.  They are not needed and potentially incorrect
for static linking of mtx_init.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Florian Weimer
2021-05-03 08:12:11 +02:00
parent 17b67416c5
commit f44c9a24ed
69 changed files with 93 additions and 146 deletions

View File

@ -2063,6 +2063,7 @@ GLIBC_2.28 cnd_wait F
GLIBC_2.28 fcntl F
GLIBC_2.28 fcntl64 F
GLIBC_2.28 mtx_destroy F
GLIBC_2.28 mtx_init F
GLIBC_2.28 renameat2 F
GLIBC_2.28 statx F
GLIBC_2.28 thrd_current F
@ -2278,12 +2279,9 @@ GLIBC_2.34 __libc_start_main F
GLIBC_2.34 __pthread_cleanup_routine F
GLIBC_2.34 __pthread_getspecific F
GLIBC_2.34 __pthread_key_create F
GLIBC_2.34 __pthread_mutex_init F
GLIBC_2.34 __pthread_mutex_lock F
GLIBC_2.34 __pthread_mutex_trylock F
GLIBC_2.34 __pthread_mutex_unlock F
GLIBC_2.34 __pthread_mutexattr_init F
GLIBC_2.34 __pthread_mutexattr_settype F
GLIBC_2.34 __pthread_setspecific F
GLIBC_2.34 __pthread_unwind_next F
GLIBC_2.34 call_once F
@ -2294,6 +2292,7 @@ GLIBC_2.34 cnd_signal F
GLIBC_2.34 cnd_timedwait F
GLIBC_2.34 cnd_wait F
GLIBC_2.34 mtx_destroy F
GLIBC_2.34 mtx_init F
GLIBC_2.34 pthread_cond_clockwait F
GLIBC_2.34 pthread_condattr_getclock F
GLIBC_2.34 pthread_condattr_getpshared F

View File

@ -69,7 +69,6 @@ GLIBC_2.2 pthread_yield F
GLIBC_2.2 sem_timedwait F
GLIBC_2.2.3 __libpthread_version_placeholder F
GLIBC_2.2.6 __libpthread_version_placeholder F
GLIBC_2.28 mtx_init F
GLIBC_2.28 mtx_lock F
GLIBC_2.28 mtx_timedlock F
GLIBC_2.28 mtx_trylock F

View File

@ -1996,6 +1996,7 @@ GLIBC_2.28 cnd_timedwait F
GLIBC_2.28 cnd_wait F
GLIBC_2.28 fcntl64 F
GLIBC_2.28 mtx_destroy F
GLIBC_2.28 mtx_init F
GLIBC_2.28 renameat2 F
GLIBC_2.28 statx F
GLIBC_2.28 thrd_current F
@ -2197,12 +2198,9 @@ GLIBC_2.34 __libc_start_main F
GLIBC_2.34 __pthread_cleanup_routine F
GLIBC_2.34 __pthread_getspecific F
GLIBC_2.34 __pthread_key_create F
GLIBC_2.34 __pthread_mutex_init F
GLIBC_2.34 __pthread_mutex_lock F
GLIBC_2.34 __pthread_mutex_trylock F
GLIBC_2.34 __pthread_mutex_unlock F
GLIBC_2.34 __pthread_mutexattr_init F
GLIBC_2.34 __pthread_mutexattr_settype F
GLIBC_2.34 __pthread_setspecific F
GLIBC_2.34 __pthread_unwind_next F
GLIBC_2.34 call_once F
@ -2213,6 +2211,7 @@ GLIBC_2.34 cnd_signal F
GLIBC_2.34 cnd_timedwait F
GLIBC_2.34 cnd_wait F
GLIBC_2.34 mtx_destroy F
GLIBC_2.34 mtx_init F
GLIBC_2.34 pthread_cond_clockwait F
GLIBC_2.34 pthread_condattr_getclock F
GLIBC_2.34 pthread_condattr_getpshared F

View File

@ -61,7 +61,6 @@ GLIBC_2.2 sem_unlink F
GLIBC_2.2 sem_wait F
GLIBC_2.2.3 __libpthread_version_placeholder F
GLIBC_2.2.6 __libpthread_version_placeholder F
GLIBC_2.28 mtx_init F
GLIBC_2.28 mtx_lock F
GLIBC_2.28 mtx_timedlock F
GLIBC_2.28 mtx_trylock F