aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--sysdeps/generic/dl-tls.c3
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index af0365db8c..e131c96a07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-09 Ulrich Drepper <drepper@redhat.com>
+
+ * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
+ loop to initial TLS block.
+
2002-02-08 Richard Henderson <rth@twiddle.net>
* sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
@@ -27,7 +32,7 @@
* configure.in: Test for __builtin_memset more realistically.
- * csu/version.c (banner): If TLS support available say so.
+ * csu/version.c (banner): If TLS support is available say so.
2002-02-04 H.J. Lu <hjl@gnu.org>
diff --git a/sysdeps/generic/dl-tls.c b/sysdeps/generic/dl-tls.c
index eb9a37bf95..5c05baee0c 100644
--- a/sysdeps/generic/dl-tls.c
+++ b/sysdeps/generic/dl-tls.c
@@ -217,7 +217,8 @@ _dl_allocate_tls (void)
'\0',
runp->l_tls_blocksize - runp->l_tls_initimage_size);
}
- while ((runp = runp->l_tls_nextimage) != NULL);
+ while ((runp = runp->l_tls_nextimage)
+ != GL(dl_initimage_list)->l_tls_nextimage);
}
/* Add the dtv to the thread data structures. */