This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]