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

@ -151,11 +151,13 @@ ___pthread_mutex_init (pthread_mutex_t *mutex,
return 0;
}
versioned_symbol (libpthread, ___pthread_mutex_init, __pthread_mutex_init,
GLIBC_2_34);
libc_hidden_ver (___pthread_mutex_init, __pthread_mutex_init)
versioned_symbol (libpthread, ___pthread_mutex_init, pthread_mutex_init,
GLIBC_2_0);
libc_hidden_ver (___pthread_mutex_init, __pthread_mutex_init)
#ifndef SHARED
strong_alias (___pthread_mutex_init, __pthread_mutex_init)
#endif
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_34)
compat_symbol (libpthread, ___pthread_mutex_init, __pthread_mutex_init,
GLIBC_2_0);