1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

nptl: Move pthread_create, thrd_create into libc

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

The libpthread placeholder symbols need some changes because some
symbol versions have gone away completely.  But
__errno_location@@GLIBC_2.0 still exists, so the GLIBC_2.0 version
is still there.

The internal __pthread_create symbol now points to the correct
function, so the sysdeps/nptl/thrd_create.c override is no longer
necessary.

There was an issue how the hidden alias of pthread_getattr_default_np
was defined, so this commit cleans up that aspects and removes the
GLIBC_PRIVATE export altogether.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
This commit is contained in:
Florian Weimer
2021-05-21 22:35:00 +02:00
parent 7862ff8e69
commit f47f1d91af
73 changed files with 233 additions and 104 deletions

View File

@ -871,6 +871,7 @@ GLIBC_2.0 pthread_cond_timedwait F
GLIBC_2.0 pthread_cond_wait F
GLIBC_2.0 pthread_condattr_destroy F
GLIBC_2.0 pthread_condattr_init F
GLIBC_2.0 pthread_create F
GLIBC_2.0 pthread_detach F
GLIBC_2.0 pthread_equal F
GLIBC_2.0 pthread_exit F
@ -1869,6 +1870,7 @@ GLIBC_2.2 pthread_barrierattr_init F
GLIBC_2.2 pthread_barrierattr_setpshared F
GLIBC_2.2 pthread_condattr_getpshared F
GLIBC_2.2 pthread_condattr_setpshared F
GLIBC_2.2 pthread_create F
GLIBC_2.2 pthread_getconcurrency F
GLIBC_2.2 pthread_getcpuclockid F
GLIBC_2.2 pthread_mutex_timedlock F
@ -2092,6 +2094,7 @@ GLIBC_2.28 mtx_trylock F
GLIBC_2.28 mtx_unlock F
GLIBC_2.28 renameat2 F
GLIBC_2.28 statx F
GLIBC_2.28 thrd_create F
GLIBC_2.28 thrd_current F
GLIBC_2.28 thrd_detach F
GLIBC_2.28 thrd_equal F
@ -2357,6 +2360,7 @@ GLIBC_2.34 pthread_condattr_getclock F
GLIBC_2.34 pthread_condattr_getpshared F
GLIBC_2.34 pthread_condattr_setclock F
GLIBC_2.34 pthread_condattr_setpshared F
GLIBC_2.34 pthread_create F
GLIBC_2.34 pthread_detach F
GLIBC_2.34 pthread_getattr_default_np F
GLIBC_2.34 pthread_getconcurrency F
@ -2429,6 +2433,7 @@ GLIBC_2.34 sem_timedwait F
GLIBC_2.34 sem_trywait F
GLIBC_2.34 sem_unlink F
GLIBC_2.34 sem_wait F
GLIBC_2.34 thrd_create F
GLIBC_2.34 thrd_detach F
GLIBC_2.34 thrd_exit F
GLIBC_2.34 thrd_join F

View File

@ -1,12 +1,11 @@
GLIBC_2.0 __errno_location F
GLIBC_2.0 pthread_create F
GLIBC_2.11 __libpthread_version_placeholder F
GLIBC_2.12 __libpthread_version_placeholder F
GLIBC_2.18 __libpthread_version_placeholder F
GLIBC_2.2 pthread_create F
GLIBC_2.2 __libpthread_version_placeholder F
GLIBC_2.2.3 __libpthread_version_placeholder F
GLIBC_2.2.6 __libpthread_version_placeholder F
GLIBC_2.28 thrd_create F
GLIBC_2.28 __libpthread_version_placeholder F
GLIBC_2.3.2 __libpthread_version_placeholder F
GLIBC_2.3.3 __libpthread_version_placeholder F
GLIBC_2.3.4 __libpthread_version_placeholder F

View File

@ -871,6 +871,7 @@ GLIBC_2.0 pthread_cond_timedwait F
GLIBC_2.0 pthread_cond_wait F
GLIBC_2.0 pthread_condattr_destroy F
GLIBC_2.0 pthread_condattr_init F
GLIBC_2.0 pthread_create F
GLIBC_2.0 pthread_detach F
GLIBC_2.0 pthread_equal F
GLIBC_2.0 pthread_exit F
@ -1867,6 +1868,7 @@ GLIBC_2.2 pthread_barrierattr_init F
GLIBC_2.2 pthread_barrierattr_setpshared F
GLIBC_2.2 pthread_condattr_getpshared F
GLIBC_2.2 pthread_condattr_setpshared F
GLIBC_2.2 pthread_create F
GLIBC_2.2 pthread_getconcurrency F
GLIBC_2.2 pthread_getcpuclockid F
GLIBC_2.2 pthread_mutex_timedlock F
@ -2090,6 +2092,7 @@ GLIBC_2.28 mtx_trylock F
GLIBC_2.28 mtx_unlock F
GLIBC_2.28 renameat2 F
GLIBC_2.28 statx F
GLIBC_2.28 thrd_create F
GLIBC_2.28 thrd_current F
GLIBC_2.28 thrd_detach F
GLIBC_2.28 thrd_equal F
@ -2355,6 +2358,7 @@ GLIBC_2.34 pthread_condattr_getclock F
GLIBC_2.34 pthread_condattr_getpshared F
GLIBC_2.34 pthread_condattr_setclock F
GLIBC_2.34 pthread_condattr_setpshared F
GLIBC_2.34 pthread_create F
GLIBC_2.34 pthread_detach F
GLIBC_2.34 pthread_getattr_default_np F
GLIBC_2.34 pthread_getconcurrency F
@ -2427,6 +2431,7 @@ GLIBC_2.34 sem_timedwait F
GLIBC_2.34 sem_trywait F
GLIBC_2.34 sem_unlink F
GLIBC_2.34 sem_wait F
GLIBC_2.34 thrd_create F
GLIBC_2.34 thrd_detach F
GLIBC_2.34 thrd_exit F
GLIBC_2.34 thrd_join F

View File

@ -1,12 +1,11 @@
GLIBC_2.0 __errno_location F
GLIBC_2.0 pthread_create F
GLIBC_2.11 __libpthread_version_placeholder F
GLIBC_2.12 __libpthread_version_placeholder F
GLIBC_2.18 __libpthread_version_placeholder F
GLIBC_2.2 pthread_create F
GLIBC_2.2 __libpthread_version_placeholder F
GLIBC_2.2.3 __libpthread_version_placeholder F
GLIBC_2.2.6 __libpthread_version_placeholder F
GLIBC_2.28 thrd_create F
GLIBC_2.28 __libpthread_version_placeholder F
GLIBC_2.3.2 __libpthread_version_placeholder F
GLIBC_2.3.3 __libpthread_version_placeholder F
GLIBC_2.3.4 __libpthread_version_placeholder F

View File

@ -871,6 +871,7 @@ GLIBC_2.0 pthread_cond_timedwait F
GLIBC_2.0 pthread_cond_wait F
GLIBC_2.0 pthread_condattr_destroy F
GLIBC_2.0 pthread_condattr_init F
GLIBC_2.0 pthread_create F
GLIBC_2.0 pthread_detach F
GLIBC_2.0 pthread_equal F
GLIBC_2.0 pthread_exit F
@ -1867,6 +1868,7 @@ GLIBC_2.2 pthread_barrierattr_init F
GLIBC_2.2 pthread_barrierattr_setpshared F
GLIBC_2.2 pthread_condattr_getpshared F
GLIBC_2.2 pthread_condattr_setpshared F
GLIBC_2.2 pthread_create F
GLIBC_2.2 pthread_getconcurrency F
GLIBC_2.2 pthread_getcpuclockid F
GLIBC_2.2 pthread_mutex_timedlock F
@ -2098,6 +2100,7 @@ GLIBC_2.28 mtx_trylock F
GLIBC_2.28 mtx_unlock F
GLIBC_2.28 renameat2 F
GLIBC_2.28 statx F
GLIBC_2.28 thrd_create F
GLIBC_2.28 thrd_current F
GLIBC_2.28 thrd_detach F
GLIBC_2.28 thrd_equal F
@ -2363,6 +2366,7 @@ GLIBC_2.34 pthread_condattr_getclock F
GLIBC_2.34 pthread_condattr_getpshared F
GLIBC_2.34 pthread_condattr_setclock F
GLIBC_2.34 pthread_condattr_setpshared F
GLIBC_2.34 pthread_create F
GLIBC_2.34 pthread_detach F
GLIBC_2.34 pthread_getattr_default_np F
GLIBC_2.34 pthread_getconcurrency F
@ -2435,6 +2439,7 @@ GLIBC_2.34 sem_timedwait F
GLIBC_2.34 sem_trywait F
GLIBC_2.34 sem_unlink F
GLIBC_2.34 sem_wait F
GLIBC_2.34 thrd_create F
GLIBC_2.34 thrd_detach F
GLIBC_2.34 thrd_exit F
GLIBC_2.34 thrd_join F

View File

@ -869,6 +869,7 @@ GLIBC_2.0 pthread_cond_timedwait F
GLIBC_2.0 pthread_cond_wait F
GLIBC_2.0 pthread_condattr_destroy F
GLIBC_2.0 pthread_condattr_init F
GLIBC_2.0 pthread_create F
GLIBC_2.0 pthread_detach F
GLIBC_2.0 pthread_equal F
GLIBC_2.0 pthread_exit F
@ -1863,6 +1864,7 @@ GLIBC_2.2 pthread_barrierattr_init F
GLIBC_2.2 pthread_barrierattr_setpshared F
GLIBC_2.2 pthread_condattr_getpshared F
GLIBC_2.2 pthread_condattr_setpshared F
GLIBC_2.2 pthread_create F
GLIBC_2.2 pthread_getconcurrency F
GLIBC_2.2 pthread_getcpuclockid F
GLIBC_2.2 pthread_mutex_timedlock F
@ -2093,6 +2095,7 @@ GLIBC_2.28 mtx_trylock F
GLIBC_2.28 mtx_unlock F
GLIBC_2.28 renameat2 F
GLIBC_2.28 statx F
GLIBC_2.28 thrd_create F
GLIBC_2.28 thrd_current F
GLIBC_2.28 thrd_detach F
GLIBC_2.28 thrd_equal F
@ -2357,6 +2360,7 @@ GLIBC_2.34 pthread_condattr_getclock F
GLIBC_2.34 pthread_condattr_getpshared F
GLIBC_2.34 pthread_condattr_setclock F
GLIBC_2.34 pthread_condattr_setpshared F
GLIBC_2.34 pthread_create F
GLIBC_2.34 pthread_detach F
GLIBC_2.34 pthread_getattr_default_np F
GLIBC_2.34 pthread_getconcurrency F
@ -2429,6 +2433,7 @@ GLIBC_2.34 sem_timedwait F
GLIBC_2.34 sem_trywait F
GLIBC_2.34 sem_unlink F
GLIBC_2.34 sem_wait F
GLIBC_2.34 thrd_create F
GLIBC_2.34 thrd_detach F
GLIBC_2.34 thrd_exit F
GLIBC_2.34 thrd_join F