This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: tls glibc broken on ppc
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Mariusz Mazur <mmazur at kernel dot pl>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Tue, 14 Dec 2004 22:17:05 +0100
- Subject: Re: tls glibc broken on ppc
- References: <200412142113.45820.mmazur@kernel.pl>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Dec 14, 2004 at 09:13:45PM +0100, Mariusz Mazur wrote:
> I'm using cvs head (more or less) on (among others) ppc. Allmost all apps
> segfault immediately when using /lib/tls/libc (though some don't; eg. rpm).
> rm -rf /lib/tls and everything works fine. Fedora's glibc also works fine
> (thanks to Jeff Johnson for suggesting I should check it), and I've managed
> to pinpoint why. Here's Jakub Jelinek's patch:
> http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/glibc-tls_fix.patch?rev=1.3
> It's more than a year old (which btw makes me wonder why fedora's glibc
> differs that much from cvs head).
CVS HEAD glibc only handles running either linuxthreads ld.so with
linuxthreads libraries, or running NPTL ld.so with NPTL libraries, but not
mixing them. If NPTL struct pthread is bigger than linuxthreads' thread
structure (it is on all arches I believe), then linuxthreads ld.so certainly
can't load NPTL libraries.
But CVS glibc doesn't install itself in /lib*/tls etc. subdirs either,
that's a distro hack as well.
Jakub