glibc/sysdeps/nptl
Florian Weimer 8a26ad2ab7 nptl: Implement pthread_self in libc.so [BZ #22635]
All binaries use TLS and thus need a properly set up TCB, so we can
simply return its address directly, instead of forwarding to the
libpthread implementation from libc.

For versioned symbols, the dynamic linker checks that the soname matches
the name supplied by the link editor, so a compatibility symbol in
libpthread is needed.

To avoid linking against the libpthread function in all cases, we would
have to bump the symbol version of libpthread in libc.so and supply a
compat symbol.  This commit does not do that because the function
implementation is so small, so the overhead by two active copies of the
same function might well be smaller than the increase in symbol table
size.
2017-12-20 11:42:04 +01:00
..
bits nptl: Define __PTHREAD_MUTEX_{NUSERS_AFTER_KIND,USE_UNION} 2017-11-07 09:48:41 -02:00
sys
aio_misc.h
allocrtsig.c
fork.c nptl: Define __PTHREAD_MUTEX_{NUSERS_AFTER_KIND,USE_UNION} 2017-11-07 09:48:41 -02:00
fork.h
futex-internal.h
gai_misc.h
Implies
internaltypes.h
jmp-unwind.c
libc-lock.h
libc-lockP.h
librt-cancellation.c
lowlevellock-futex.h
lowlevellock.h
Makeconfig Remove add-ons mechanism. 2017-10-05 15:58:13 +00:00
Makefile
malloc-machine.h
nptl-signals.h
pthread-functions.h nptl: Implement pthread_self in libc.so [BZ #22635] 2017-12-20 11:42:04 +01:00
pthread.h Linux/x86: Update cancel_jmp_buf to match __jmp_buf_tag [BZ #22563] 2017-12-19 02:44:04 -08:00
setxid.h
shm-directory.h
sigfillset.c
stdio-lock.h
Subdirs
tcb-offsets.h
tst-mqueue8x.c
unwind-forcedunwind.c