merge from open-source master

Change-Id: I483fedf77d978b1c6e52d73eebc14f011bb9f809
This commit is contained in:
The Android Open Source Project 2010-03-31 14:19:51 -07:00
commit d046725133

View File

@ -469,7 +469,7 @@ _do_lookup(soinfo *si, const char *name, unsigned *base)
DEBUG("%5d %s: looking up %s in %s\n",
pid, si->name, name, lsi->name);
s = _elf_lookup(lsi, elf_hash, name);
if(s != NULL)
if ((s != NULL) && (s->st_shndx != SHN_UNDEF))
goto done;
}
}