From 9cec82de715b3ffc625a6c67d107a3fcb26af566 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 11 Nov 2020 10:35:10 +0000 Subject: htl: Initialize later Since htl does not actually need a stack switch, we can initialize it like nptl is, avoiding all sorts of startup issues with ifunc. More precisely, htl defines __pthread_initialize_minimal instead of the elder _cthread_init_routine. We can then drop the stack switching dances. --- htl/Versions | 4 ++-- htl/libpthread_syms.a | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'htl') diff --git a/htl/Versions b/htl/Versions index 832cc5d..4e23c2e 100644 --- a/htl/Versions +++ b/htl/Versions @@ -43,8 +43,6 @@ libpthread { __pthread_mutex_transfer_np; - _cthread_init_routine; - cthread_detach; cthread_fork; cthread_keycreate; @@ -168,6 +166,8 @@ libpthread { } GLIBC_PRIVATE { + __pthread_initialize_minimal; + __shm_directory; __pthread_threads; diff --git a/htl/libpthread_syms.a b/htl/libpthread_syms.a index 3801ec9..48dadfb 100644 --- a/htl/libpthread_syms.a +++ b/htl/libpthread_syms.a @@ -1,6 +1,6 @@ /* pthread initializer is weak in glibc. It must be included if glibc is to start threading. */ -EXTERN(_cthread_init_routine) +EXTERN(__pthread_initialize_minimal) /* Weak references in glibc that must be filled if glibc is to be thread safe. */ -- cgit v1.1