From 6333a6014f32c7ced36ced610d5a5cecbafba6c3 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 4 Sep 2023 20:03:37 +0200 Subject: __call_tls_dtors: Use call_function_static_weak --- nptl/pthread_create.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'nptl') diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c index 1ac8862ed2..6a41d50109 100644 --- a/nptl/pthread_create.c +++ b/nptl/pthread_create.c @@ -446,10 +446,7 @@ start_thread (void *arg) } /* Call destructors for the thread_local TLS variables. */ -#ifndef SHARED - if (&__call_tls_dtors != NULL) -#endif - __call_tls_dtors (); + call_function_static_weak (__call_tls_dtors); /* Run the destructor for the thread-local data. */ __nptl_deallocate_tsd (); -- cgit 1.4.1