aboutsummaryrefslogtreecommitdiff
path: root/csu
diff options
context:
space:
mode:
Diffstat (limited to 'csu')
-rw-r--r--csu/libc-tls.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/csu/libc-tls.c b/csu/libc-tls.c
index 64d1779..3715ded 100644
--- a/csu/libc-tls.c
+++ b/csu/libc-tls.c
@@ -232,6 +232,11 @@ _dl_tls_setup (void)
}
+#ifdef HAVE_ASM_SECONDARY_DIRECTIVE
+/* Make sure that it is used only when libpthread.a is not used */
+asm (".secondary __pthread_initialize_minimal");
+#endif
+
/* This is the minimal initialization function used when libpthread is
not used. */
void