From 3fec7f18bfcb7044e813a12e19c3c98eb8387e26 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 21 Apr 2021 19:49:50 +0200 Subject: nptl: Move pthread_once and __pthread_once into libc And also the fork generation counter, __fork_generation. This eliminates the need for __fork_generation_pointer. call_once remains in libpthread and calls the exported __pthread_once symbol. pthread_once and __pthread_once have been moved using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist | 4 ++++ sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist | 2 -- sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist | 4 ++++ sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist | 2 -- sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist | 4 ++++ sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist | 4 ++++ 6 files changed, 16 insertions(+), 4 deletions(-) (limited to 'sysdeps/unix/sysv/linux/mips') diff --git a/sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist b/sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist index a21d435..2dda142 100644 --- a/sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist +++ b/sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist @@ -183,6 +183,7 @@ GLIBC_2.0 __printf_fp F GLIBC_2.0 __profile_frequency F GLIBC_2.0 __progname D 0x4 GLIBC_2.0 __progname_full D 0x4 +GLIBC_2.0 __pthread_once F GLIBC_2.0 __rcmd_errstr D 0x4 GLIBC_2.0 __read F GLIBC_2.0 __realloc_hook D 0x4 @@ -865,6 +866,7 @@ GLIBC_2.0 pthread_mutex_destroy F GLIBC_2.0 pthread_mutex_init F GLIBC_2.0 pthread_mutex_lock F GLIBC_2.0 pthread_mutex_unlock F +GLIBC_2.0 pthread_once F GLIBC_2.0 pthread_self F GLIBC_2.0 pthread_setcancelstate F GLIBC_2.0 pthread_setcanceltype F @@ -2166,8 +2168,10 @@ GLIBC_2.33 stat F GLIBC_2.33 stat64 F GLIBC_2.34 __libc_start_main F GLIBC_2.34 __pthread_cleanup_routine F +GLIBC_2.34 __pthread_once F GLIBC_2.34 pthread_kill F GLIBC_2.34 pthread_mutex_consistent F +GLIBC_2.34 pthread_once F GLIBC_2.4 __confstr_chk F GLIBC_2.4 __fgets_chk F GLIBC_2.4 __fgets_unlocked_chk F diff --git a/sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist b/sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist index ac5fd28..8033493 100644 --- a/sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist @@ -13,7 +13,6 @@ GLIBC_2.0 __pthread_mutex_unlock F GLIBC_2.0 __pthread_mutexattr_destroy F GLIBC_2.0 __pthread_mutexattr_init F GLIBC_2.0 __pthread_mutexattr_settype F -GLIBC_2.0 __pthread_once F GLIBC_2.0 __pthread_setspecific F GLIBC_2.0 flockfile F GLIBC_2.0 ftrylockfile F @@ -41,7 +40,6 @@ GLIBC_2.0 pthread_mutexattr_destroy F GLIBC_2.0 pthread_mutexattr_getkind_np F GLIBC_2.0 pthread_mutexattr_init F GLIBC_2.0 pthread_mutexattr_setkind_np F -GLIBC_2.0 pthread_once F GLIBC_2.0 pthread_setcancelstate F GLIBC_2.0 pthread_setcanceltype F GLIBC_2.0 pthread_setspecific F diff --git a/sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist b/sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist index 020d46f..9ea18fa 100644 --- a/sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist +++ b/sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist @@ -183,6 +183,7 @@ GLIBC_2.0 __printf_fp F GLIBC_2.0 __profile_frequency F GLIBC_2.0 __progname D 0x4 GLIBC_2.0 __progname_full D 0x4 +GLIBC_2.0 __pthread_once F GLIBC_2.0 __rcmd_errstr D 0x4 GLIBC_2.0 __read F GLIBC_2.0 __realloc_hook D 0x4 @@ -865,6 +866,7 @@ GLIBC_2.0 pthread_mutex_destroy F GLIBC_2.0 pthread_mutex_init F GLIBC_2.0 pthread_mutex_lock F GLIBC_2.0 pthread_mutex_unlock F +GLIBC_2.0 pthread_once F GLIBC_2.0 pthread_self F GLIBC_2.0 pthread_setcancelstate F GLIBC_2.0 pthread_setcanceltype F @@ -2164,8 +2166,10 @@ GLIBC_2.33 stat F GLIBC_2.33 stat64 F GLIBC_2.34 __libc_start_main F GLIBC_2.34 __pthread_cleanup_routine F +GLIBC_2.34 __pthread_once F GLIBC_2.34 pthread_kill F GLIBC_2.34 pthread_mutex_consistent F +GLIBC_2.34 pthread_once F GLIBC_2.4 __confstr_chk F GLIBC_2.4 __fgets_chk F GLIBC_2.4 __fgets_unlocked_chk F diff --git a/sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist b/sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist index ac5fd28..8033493 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist @@ -13,7 +13,6 @@ GLIBC_2.0 __pthread_mutex_unlock F GLIBC_2.0 __pthread_mutexattr_destroy F GLIBC_2.0 __pthread_mutexattr_init F GLIBC_2.0 __pthread_mutexattr_settype F -GLIBC_2.0 __pthread_once F GLIBC_2.0 __pthread_setspecific F GLIBC_2.0 flockfile F GLIBC_2.0 ftrylockfile F @@ -41,7 +40,6 @@ GLIBC_2.0 pthread_mutexattr_destroy F GLIBC_2.0 pthread_mutexattr_getkind_np F GLIBC_2.0 pthread_mutexattr_init F GLIBC_2.0 pthread_mutexattr_setkind_np F -GLIBC_2.0 pthread_once F GLIBC_2.0 pthread_setcancelstate F GLIBC_2.0 pthread_setcanceltype F GLIBC_2.0 pthread_setspecific F diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist b/sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist index 0f20b3f..e69909e 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist +++ b/sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist @@ -183,6 +183,7 @@ GLIBC_2.0 __printf_fp F GLIBC_2.0 __profile_frequency F GLIBC_2.0 __progname D 0x4 GLIBC_2.0 __progname_full D 0x4 +GLIBC_2.0 __pthread_once F GLIBC_2.0 __rcmd_errstr D 0x4 GLIBC_2.0 __read F GLIBC_2.0 __realloc_hook D 0x4 @@ -865,6 +866,7 @@ GLIBC_2.0 pthread_mutex_destroy F GLIBC_2.0 pthread_mutex_init F GLIBC_2.0 pthread_mutex_lock F GLIBC_2.0 pthread_mutex_unlock F +GLIBC_2.0 pthread_once F GLIBC_2.0 pthread_self F GLIBC_2.0 pthread_setcancelstate F GLIBC_2.0 pthread_setcanceltype F @@ -2172,8 +2174,10 @@ GLIBC_2.33 stat F GLIBC_2.33 stat64 F GLIBC_2.34 __libc_start_main F GLIBC_2.34 __pthread_cleanup_routine F +GLIBC_2.34 __pthread_once F GLIBC_2.34 pthread_kill F GLIBC_2.34 pthread_mutex_consistent F +GLIBC_2.34 pthread_once F GLIBC_2.4 __confstr_chk F GLIBC_2.4 __fgets_chk F GLIBC_2.4 __fgets_unlocked_chk F diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist b/sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist index b9d5d40..7957f86 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist +++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist @@ -183,6 +183,7 @@ GLIBC_2.0 __printf_fp F GLIBC_2.0 __profile_frequency F GLIBC_2.0 __progname D 0x8 GLIBC_2.0 __progname_full D 0x8 +GLIBC_2.0 __pthread_once F GLIBC_2.0 __rcmd_errstr D 0x8 GLIBC_2.0 __read F GLIBC_2.0 __realloc_hook D 0x8 @@ -863,6 +864,7 @@ GLIBC_2.0 pthread_mutex_destroy F GLIBC_2.0 pthread_mutex_init F GLIBC_2.0 pthread_mutex_lock F GLIBC_2.0 pthread_mutex_unlock F +GLIBC_2.0 pthread_once F GLIBC_2.0 pthread_self F GLIBC_2.0 pthread_setcancelstate F GLIBC_2.0 pthread_setcanceltype F @@ -2166,8 +2168,10 @@ GLIBC_2.33 stat F GLIBC_2.33 stat64 F GLIBC_2.34 __libc_start_main F GLIBC_2.34 __pthread_cleanup_routine F +GLIBC_2.34 __pthread_once F GLIBC_2.34 pthread_kill F GLIBC_2.34 pthread_mutex_consistent F +GLIBC_2.34 pthread_once F GLIBC_2.4 __confstr_chk F GLIBC_2.4 __fgets_chk F GLIBC_2.4 __fgets_unlocked_chk F -- cgit v1.1