aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-11-23 22:57:42 +0000
committerUlrich Drepper <drepper@redhat.com>2004-11-23 22:57:42 +0000
commit42586dce0327cd294aa28dc74a2d73eb1c10da88 (patch)
tree818b642f3a582ff8470580c7a169ee21c3e91e1c
parent405521b51d89c9794d66f1d6cb7b2d3f02e9ae07 (diff)
downloadglibc-42586dce0327cd294aa28dc74a2d73eb1c10da88.zip
glibc-42586dce0327cd294aa28dc74a2d73eb1c10da88.tar.gz
glibc-42586dce0327cd294aa28dc74a2d73eb1c10da88.tar.bz2
Update.
2004-11-23 Alexandre Oliva <aoliva@redhat.com> * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Use free range even if it doesn't match exactly.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/generic/dl-tls.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6d55477..7a8acee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-23 Alexandre Oliva <aoliva@redhat.com>
+
+ * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Use free
+ range even if it doesn't match exactly.
+
2004-11-23 Jakub Jelinek <jakub@redhat.com>
* nss/nss_files/files-XXX.c (internal_getent): If parse_line returned
diff --git a/sysdeps/generic/dl-tls.c b/sysdeps/generic/dl-tls.c
index bf3592e..3382e34 100644
--- a/sysdeps/generic/dl-tls.c
+++ b/sysdeps/generic/dl-tls.c
@@ -217,7 +217,7 @@ _dl_determine_tlsoffset (void)
size_t off;
max_align = MAX (max_align, slotinfo[cnt].map->l_tls_align);
- if (slotinfo[cnt].map->l_tls_blocksize >= freetop - freebottom)
+ if (slotinfo[cnt].map->l_tls_blocksize <= freetop - freebottom)
{
off = roundup (freebottom, slotinfo[cnt].map->l_tls_align);
if (off - freebottom < firstbyte)