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 --- htl/pt-exit.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'htl') diff --git a/htl/pt-exit.c b/htl/pt-exit.c index 22b585bb28..cb20a43aab 100644 --- a/htl/pt-exit.c +++ b/htl/pt-exit.c @@ -47,10 +47,7 @@ __pthread_exit (void *status) (*handlers)->__handler ((*handlers)->__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); __pthread_setcancelstate (oldstate, &oldstate); -- cgit 1.4.1