fix bug dlsym bug that slipped in during dynamic linker cleanup
This commit is contained in:
parent
721564a264
commit
6ecff18cc5
1 changed files with 1 additions and 1 deletions
|
|
@ -803,7 +803,7 @@ static void *do_dlsym(struct dso *p, const char *s, void *ra)
|
||||||
if (sym && sym->st_value && (1<<(sym->st_info&0xf) & OK_TYPES))
|
if (sym && sym->st_value && (1<<(sym->st_info&0xf) & OK_TYPES))
|
||||||
return p->base + sym->st_value;
|
return p->base + sym->st_value;
|
||||||
if (p->deps) for (i=0; p->deps[i]; i++) {
|
if (p->deps) for (i=0; p->deps[i]; i++) {
|
||||||
sym = lookup(s, h, p);
|
sym = lookup(s, h, p->deps[i]);
|
||||||
if (sym && sym->st_value && (1<<(sym->st_info&0xf) & OK_TYPES))
|
if (sym && sym->st_value && (1<<(sym->st_info&0xf) & OK_TYPES))
|
||||||
return p->deps[i]->base + sym->st_value;
|
return p->deps[i]->base + sym->st_value;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue