mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
When searching an object that was opened with RTLD_GLOBAL, search its DAG too.
PR: bin/25059 Approved by: jdp MFC after: 3 weeks
This commit is contained in:
parent
10d3660bd2
commit
e211585c77
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91444
@ -1915,9 +1915,12 @@ symlook_default(const char *name, unsigned long hash,
|
||||
}
|
||||
}
|
||||
|
||||
/* Search all RTLD_GLOBAL objects. */
|
||||
if (def == NULL || ELF_ST_BIND(def->st_info) == STB_WEAK) {
|
||||
symp = symlook_list(name, hash, &list_global, &obj, in_plt, &donelist);
|
||||
/* Search all DAGs whose roots are RTLD_GLOBAL objects. */
|
||||
STAILQ_FOREACH(elm, &list_global, link) {
|
||||
if (def != NULL && ELF_ST_BIND(def->st_info) != STB_WEAK)
|
||||
break;
|
||||
symp = symlook_list(name, hash, &elm->obj->dagmembers, &obj, in_plt,
|
||||
&donelist);
|
||||
if (symp != NULL &&
|
||||
(def == NULL || ELF_ST_BIND(symp->st_info) != STB_WEAK)) {
|
||||
def = symp;
|
||||
|
Loading…
Reference in New Issue
Block a user