This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: DTV_AT_TP _dl_determine_tlsoffset often doesn't use free gap
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: 22 Nov 2004 19:32:24 -0200
- Subject: Re: DTV_AT_TP _dl_determine_tlsoffset often doesn't use free gap
- Organization: Red Hat Global Engineering Services Compiler Team
- References: <ord5z2ymf1.fsf@livre.redhat.lsd.ic.unicamp.br>
Ping?
On Oct 29, 2004, Alexandre Oliva <aoliva@redhat.com> wrote:
> * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Use free
> range even if it doesn't match exactly.
> --- sysdeps/generic/dl-tls.c.~1.43.~ 2004-10-14 15:16:17.000000000 -0300
> +++ sysdeps/generic/dl-tls.c 2004-10-29 04:53:26.500811239 -0300
> @@ -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)
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}