mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Avoid unconditional __call_tls_dtors calls in static linking.
This commit is contained in:
@ -312,7 +312,10 @@ start_thread (void *arg)
|
||||
}
|
||||
|
||||
/* Call destructors for the thread_local TLS variables. */
|
||||
__call_tls_dtors ();
|
||||
#ifndef SHARED
|
||||
if (&__call_tls_dtors != NULL)
|
||||
#endif
|
||||
__call_tls_dtors ();
|
||||
|
||||
/* Run the destructor for the thread-local data. */
|
||||
__nptl_deallocate_tsd ();
|
||||
|
Reference in New Issue
Block a user