am 33031fed: Merge "Fix typo of DT_NEEDED for DT_NULL"

* commit '33031fed84e24fb7791f123df45abc1a3812ac59':
  Fix typo of DT_NEEDED for DT_NULL
This commit is contained in:
Brian Carlstrom 2013-03-06 16:11:07 -08:00 committed by Android Git Automerger
commit 91392116ff

View file

@ -799,7 +799,7 @@ static int soinfo_unload(soinfo* si) {
TRACE("unloading '%s'\n", si->name); TRACE("unloading '%s'\n", si->name);
si->CallDestructors(); si->CallDestructors();
for (Elf32_Dyn* d = si->dynamic; d->d_tag != DT_NEEDED; ++d) { for (Elf32_Dyn* d = si->dynamic; d->d_tag != DT_NULL; ++d) {
if (d->d_tag == DT_NEEDED) { if (d->d_tag == DT_NEEDED) {
const char* library_name = si->strtab + d->d_un.d_val; const char* library_name = si->strtab + d->d_un.d_val;
soinfo* lsi = find_loaded_library(library_name); soinfo* lsi = find_loaded_library(library_name);