mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 02:03:35 +08:00
442e8a40da
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> |
||
---|---|---|
.. | ||
bits | ||
sys | ||
aio_misc.h | ||
dl-thread_gscope_wait.c | ||
dl-tls_init_tp.c | ||
dl-tunables.list | ||
fork.c | ||
futex-internal.h | ||
gai_misc.h | ||
Implies | ||
internaltypes.h | ||
jmp-unwind.c | ||
libc_start_call_main.h | ||
libc-lock.h | ||
libc-lockP.h | ||
librt-cancellation.c | ||
lowlevellock-futex.h | ||
lowlevellock.h | ||
Makeconfig | ||
Makefile | ||
malloc-machine.h | ||
proc_service.h | ||
pthread-functions.h | ||
pthread-offsets.h | ||
pthread.h | ||
setxid.h | ||
stdio-lock.h | ||
Subdirs | ||
tcb-offsets.h | ||
thrd_create.c | ||
thread_db.h | ||
timer_routines.h | ||
tst-mqueue8x.c |