This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: DTV_AT_TP _dl_determine_tlsoffset often doesn't use free gap


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}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]