This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Dead code in 'elf/rtld.c' with respect to USE___THREAD?
- From: "Steven J. Hill" <sjhill at realitydiluted dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Mon, 19 Sep 2005 21:50:08 -0500
- Subject: Dead code in 'elf/rtld.c' with respect to USE___THREAD?
Greetings.
I am curious about the code blocks in 'elf/rtld.c' that are surrounded
by '#if USE___THREAD'. How can this code ever be activated? Looking at
'include/tls.h' we have:
#if USE_TLS && HAVE___THREAD \
&& (!defined NOT_IN_libc || defined IS_IN_libpthread)
# define USE___THREAD 1
#else
# define USE___THREAD 0
#endif
Where are the cases that 'elf/rtld.c' are built as part of the pthreads
library or built into the C library? Thanks in advance for clarification.
-Steve