cvs commit: src/lib/libc/gen tls.c

Doug Rabson dfr at nlsystems.com
Tue Aug 24 00:34:23 PDT 2004


On Monday 23 August 2004 20:58, Marcel Moolenaar wrote:
> On Mon, Aug 23, 2004 at 08:01:22PM +0100, Doug Rabson wrote:
> > > > This is the real fix for the static binaries segfaulting on
> > > > alpha. With this we could re-add the change to crt1.c which
> > > > enables TLS for static binaries. Given that we don't yet fully
> > > > support TLS for alpha in either rtld or libpthread, I don't
> > > > propose to change lib/csu/alpha/crt1.c again for 5.3.
>
> *snip*
>
> > Another thing which confuses me right now is that the same bug
> > ought to have affected ia64 and powerpc since they both would like
> > to use variant I style TLS. Odd.
>
> On ia64 we never call _rtld_allocate_tls():
>
> itanium% ldd ./hello
> ldd: ./hello: not a dynamic executable
> itanium% gdb ./hello
> GNU gdb 6.1.1 [FreeBSD]
> *snip*
> (gdb) b _rtld_allocate_tls
> Breakpoint 1 at 0x20000000000004a0
> (gdb) run
> Starting program: /nfs/home/marcel/hello
> Hello world!
>
> Program exited normally.
> (gdb) b _init_tls
> Breakpoint 2 at 0x2000000000000640
> (gdb) run
> Starting program: /nfs/home/marcel/hello
>
> Breakpoint 2, 0x2000000000000640 in _init_tls ()
> (gdb) c
> Continuing.
> Hello world!
>
> Program exited normally.
> (gdb) quit

Interesting - do you have the previous change to gen/tls.c - the one 
which unbreaks static pthread-using binaries which don't have TLS 
sections?


More information about the cvs-src mailing list