about summary refs log tree commit diff
path: root/htl/pt-exit.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-09-04 20:03:37 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-09-04 20:03:37 +0200
commit6333a6014f32c7ced36ced610d5a5cecbafba6c3 (patch)
tree48a3cd9f10e8fb27ee36f76ad25d668bbebcbaac /htl/pt-exit.c
parent2897b231a6b71ee17d47d3d63f1112b2641a476c (diff)
downloadglibc-6333a6014f32c7ced36ced610d5a5cecbafba6c3.tar.gz
glibc-6333a6014f32c7ced36ced610d5a5cecbafba6c3.tar.xz
glibc-6333a6014f32c7ced36ced610d5a5cecbafba6c3.zip
__call_tls_dtors: Use call_function_static_weak
Diffstat (limited to 'htl/pt-exit.c')
-rw-r--r--htl/pt-exit.c5
1 files changed, 1 insertions, 4 deletions
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);