aboutsummaryrefslogtreecommitdiff
path: root/nptl/nptl-init.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-10 10:31:41 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-10 10:31:41 +0200
commit321789f61aa93c14390535aa3cf01846633cd022 (patch)
treefe2687c3058b23379918e700a7bfec82da2f4cd0 /nptl/nptl-init.c
parentd6163dfd3831cf48b69f430f37b4c099059a9db5 (diff)
downloadglibc-321789f61aa93c14390535aa3cf01846633cd022.zip
glibc-321789f61aa93c14390535aa3cf01846633cd022.tar.gz
glibc-321789f61aa93c14390535aa3cf01846633cd022.tar.bz2
nptl: Export __libc_multiple_threads from libc as an internal symbol
This allows the elimination of the __libc_multiple_threads_ptr variable in libpthread and its initialization procedure. Tested-by: Carlos O'Donell <carlos@redhat.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nptl/nptl-init.c')
-rw-r--r--nptl/nptl-init.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c
index 2724770..2fb1117 100644
--- a/nptl/nptl-init.c
+++ b/nptl/nptl-init.c
@@ -37,11 +37,6 @@
#include <libc-pointer-arith.h>
#include <pthread_mutex_conf.h>
-#ifndef TLS_MULTIPLE_THREADS_IN_TCB
-/* Pointer to the corresponding variable in libc. */
-int *__libc_multiple_threads_ptr attribute_hidden;
-#endif
-
/* Size and alignment of static TLS block. */
size_t __static_tls_size;
size_t __static_tls_align_m1;
@@ -183,10 +178,7 @@ __pthread_initialize_minimal_internal (void)
#endif
/* Register the fork generation counter with the libc. */
-#ifndef TLS_MULTIPLE_THREADS_IN_TCB
- __libc_multiple_threads_ptr =
-#endif
- __libc_pthread_init (__reclaim_stacks);
+ __libc_pthread_init (__reclaim_stacks);
}
strong_alias (__pthread_initialize_minimal_internal,
__pthread_initialize_minimal)