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:
@ -29,3 +29,17 @@ td_init (void)
|
||||
LOG ("td_init");
|
||||
return TD_OK;
|
||||
}
|
||||
|
||||
bool
|
||||
__td_ta_rtld_global (td_thragent_t *ta)
|
||||
{
|
||||
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;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return ta->ta_addr__rtld_global != (void*)-1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user