1
0
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:
Roland McGrath
2013-03-28 16:52:57 -07:00
parent 288f7d79fe
commit e57b0c6100
6 changed files with 27 additions and 5 deletions

View File

@ -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 ();