This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Does TLS work with static binary?
- From: "H. J. Lu" <hjl at lucon dot org>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Mon, 15 Jul 2002 12:29:05 -0700
- Subject: Does TLS work with static binary?
I got
# gcc -g ex1.c -lpthread -static
# ./a.out
zsh: 9579 segmentation fault ./a.out
# gdb a.out core
...
Program terminated with signal 11, Segmentation fault.
#0 __pthread_initialize_minimal () at pthread.c:404
404 pthread_descr self = THREAD_SELF;
(gdb) bt
#0 __pthread_initialize_minimal () at pthread.c:404
#1 0x0804dcc0 in __libc_start_main (main=0x8048250 <main>, argc=1,
ubp_av=0xbffffa24, init=0x80480b4 <_init>, fini=0x80ab2a0 <_fini>,
rtld_fini=0, stack_end=0xbffffa1c) at ../sysdeps/generic/libc-start.c:84
Has anyone seen this?
H.J.