mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
nptl: Move stack list variables into _rtld_global
Now __thread_gscope_wait (the function behind THREAD_GSCOPE_WAIT, formerly __wait_lookup_done) can be implemented directly in ld.so, eliminating the unprotected GL (dl_wait_lookup_done) function pointer. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -28,12 +28,7 @@ dtv_slotinfo_list (td_thragent_t *ta,
|
||||
td_err_e err;
|
||||
psaddr_t head;
|
||||
|
||||
if (ta->ta_addr__rtld_global == 0
|
||||
&& td_mod_lookup (ta->ph, LD_SO, SYM__rtld_global,
|
||||
&ta->ta_addr__rtld_global) != PS_OK)
|
||||
ta->ta_addr__rtld_global = (void*)-1;
|
||||
|
||||
if (ta->ta_addr__rtld_global != (void*)-1)
|
||||
if (__td_ta_rtld_global (ta))
|
||||
{
|
||||
err = DB_GET_FIELD (head, ta, ta->ta_addr__rtld_global,
|
||||
rtld_global, _dl_tls_dtv_slotinfo_list, 0);
|
||||
|
Reference in New Issue
Block a user