From 42586dce0327cd294aa28dc74a2d73eb1c10da88 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 23 Nov 2004 22:57:42 +0000 Subject: Update. 2004-11-23 Alexandre Oliva * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Use free range even if it doesn't match exactly. --- ChangeLog | 5 +++++ sysdeps/generic/dl-tls.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6d5547717e..7a8acee19a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-11-23 Alexandre Oliva + + * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Use free + range even if it doesn't match exactly. + 2004-11-23 Jakub Jelinek * 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 bf3592e292..3382e3493c 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) -- cgit v1.2.3