public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] TLS in glibc
@ 2003-11-06 16:59 Stefan Jones
  2003-11-06 19:27 ` [gentoo-dev] " Martin Schlemmer
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Jones @ 2003-11-06 16:59 UTC (permalink / raw
  To: Martin Schlemmer; +Cc: gentoo-dev

Hi,

I am just wondering why TLS is not enabled by default in glibc with
linuxthreads. Both Debian and Redhat enable it by default.

Also the Glibc INSTALL file states:


`--without-tls'
     By default the C library is built with support for thread-local
     storage if the used tools support it.  By using `--without-tls'
     this can be prevented though there generally is no reason since it
     creates compatibility problems.
 

I realise it used to be the case that nvidia-glx would not work with it
but that is no longer the case.

It could be that you don't trust the build tools to work (binutils,
gcc); but I don't think that is any longer the case.

It is just with this multiple version glibc thing, I am trying to select
suitable flavours of glibc:

So far I am thinking of:
/lib - linuxthreads, kernel-version=2.2.5 no-tls
/lib/i686 - linuxthreads tls kernel-version=2.4.1
/lib/tls - nptl tls kernel-version=2.6.0

with the ld-linux.so in /lib being the one from 
"linuxthreads tls kernel-version=2.4.1" (if any of the libraries have
TLS then the main ld-linux.so needs TLS)

This would mean 2.2 kernels will not run; but I don't think that is an
issue.

Sound ok?

Also I would like to see the CFLAGS in glibc upped,

Debian unstable uses:

-march=i686 -mcpu=i686 -g0 -O3 -fomit-frame-pointer
-D__USE_STRING_INLINES

for i686 optimised binaries; I would like to see the same possibility in
gentoo. Debian after all has always been seem to err on the side of
caution.

Stefan
-- 
Stefan Jones <cretin@gentoo.org>
Gentoo Linux


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-dev] Re: TLS in glibc
  2003-11-06 16:59 [gentoo-dev] TLS in glibc Stefan Jones
@ 2003-11-06 19:27 ` Martin Schlemmer
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Schlemmer @ 2003-11-06 19:27 UTC (permalink / raw
  To: Gentoo-Dev

[-- Attachment #1: Type: text/plain, Size: 2083 bytes --]

On Thu, 2003-11-06 at 18:59, Stefan Jones wrote:
> Hi,
> 
> I am just wondering why TLS is not enabled by default in glibc with
> linuxthreads. Both Debian and Redhat enable it by default.
> 
> Also the Glibc INSTALL file states:
> 
> 
> `--without-tls'
>      By default the C library is built with support for thread-local
>      storage if the used tools support it.  By using `--without-tls'
>      this can be prevented though there generally is no reason since it
>      creates compatibility problems.
>  
> 
> I realise it used to be the case that nvidia-glx would not work with it
> but that is no longer the case.
> 

Possibly.

> It could be that you don't trust the build tools to work (binutils,
> gcc); but I don't think that is any longer the case.
> 

Not really.

> It is just with this multiple version glibc thing, I am trying to select
> suitable flavours of glibc:
> 
> So far I am thinking of:
> /lib - linuxthreads, kernel-version=2.2.5 no-tls
> /lib/i686 - linuxthreads tls kernel-version=2.4.1
> /lib/tls - nptl tls kernel-version=2.6.0
> 
> with the ld-linux.so in /lib being the one from 
> "linuxthreads tls kernel-version=2.4.1" (if any of the libraries have
> TLS then the main ld-linux.so needs TLS)
> 

This is one of the reasons I did not want to do this.  Remember, all
that have to be built ...

> Debian unstable uses:
> 
> -march=i686 -mcpu=i686 -g0 -O3 -fomit-frame-pointer
> -D__USE_STRING_INLINES
> 
> for i686 optimised binaries; I would like to see the same possibility in
> gentoo. Debian after all has always been seem to err on the side of
> caution.
> 

We just use -O2, which I still think is the safer one.  I have
no idea on -D__USE_STRING_INLINES, but -fomit-frame-pointer
will at least create issues if anybody wants to build a glibc
with -ggdb, and I am not sure on if it have any effect on
stuff linking runtime against it when run in a debugger.


Thanks,

-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-06 19:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-06 16:59 [gentoo-dev] TLS in glibc Stefan Jones
2003-11-06 19:27 ` [gentoo-dev] " Martin Schlemmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox