glibc/sysdeps/nptl
Florian Weimer 442e8a40da nptl: Move part of TCB initialization from libpthread to __tls_init_tp
This initalization should only happen once for the main thread's TCB.
At present, auditors can achieve this by not linking against
libpthread.  If libpthread becomes part of libc, doing this
initialization in libc would happen for every audit namespace,
or too late (if it happens from the main libc only).  That's why
moving this code into ld.so seems the right thing to do, right after
the TCB initialization.

For !__ASSUME_SET_ROBUST_LIST ports, this also moves the symbol
__set_robust_list_avail into ld.so, as __nptl_set_robust_list_avail.
It also turned into a proper boolean flag.

Inline the __pthread_initialize_pids function because it seems no
longer useful as a separate function.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2021-04-21 19:49:51 +02:00
..
bits Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sys Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
aio_misc.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-thread_gscope_wait.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-tls_init_tp.c nptl: Move part of TCB initialization from libpthread to __tls_init_tp 2021-04-21 19:49:51 +02:00
dl-tunables.list Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fork.c nptl: Invoke the set_robust_list system call directly in fork 2021-04-21 19:49:51 +02:00
futex-internal.h nptl: Move futex-internal into libc 2021-02-22 18:30:52 +01:00
gai_misc.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Implies
internaltypes.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
jmp-unwind.c nptl: Move __pthread_cleanup_upto into libc 2021-04-21 19:49:50 +02:00
libc_start_call_main.h nptl: Move __nptl_deallocate_tsd into libc 2021-04-21 19:49:50 +02:00
libc-lock.h nptl: Move legacy unwinding implementation into libc 2021-04-21 19:49:50 +02:00
libc-lockP.h Remove pthread_key_create-related internals from libc-lock.h 2021-04-21 19:49:51 +02:00
librt-cancellation.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
lowlevellock-futex.h nptl: Remove private futex optimization [BZ #27304] 2021-02-04 15:00:20 +01:00
lowlevellock.h nptl: Move elision implementations into libc 2021-02-23 14:59:34 +01:00
Makeconfig Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile nptl: Move futex-internal.c into main nptl directory 2021-02-22 18:30:52 +01:00
malloc-machine.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
proc_service.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pthread-functions.h nptl: Invoke the set_robust_list system call directly in fork 2021-04-21 19:49:51 +02:00
pthread-offsets.h nptl: update default pthread-offsets.h 2020-02-10 17:01:21 +01:00
pthread.h nptl: Move pthread_mutex_consistent into libc 2021-04-21 19:49:50 +02:00
setxid.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
stdio-lock.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Subdirs
tcb-offsets.h
thrd_create.c C11 threads: Move implementation to sysdeps/pthread 2020-02-09 13:56:48 +01:00
thread_db.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
timer_routines.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-mqueue8x.c