mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-04 19:00:09 +00:00
1d9cbb9608
The previous definition of THREAD_SELF did not tell the compiler that %fs (or %gs) usage is invalid for the !DL_LOOKUP_GSCOPE_LOCK case in _dl_lookup_symbol_x. As a result, ld.so could try to use the TCB before it was initialized. As the comment in tls.h explains, asm volatile is undesirable here. Using the __seg_fs (or __seg_gs) namespace does not interfere with optimization, and expresses that THREAD_SELF is potentially trapping. |
||
---|---|---|
.. | ||
Makefile | ||
pthread_spin_init.c | ||
pthread_spin_lock.S | ||
pthread_spin_trylock.S | ||
pthread_spin_unlock.S | ||
pthread-offsets.h | ||
pthreaddef.h | ||
tcb-offsets.sym | ||
tls.h |