From 2d4b9b7cff78b9a378d7fc0f28c702dc43002020 Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Wed, 6 Mar 2013 15:32:16 -0800 Subject: [PATCH] Fix typo of DT_NEEDED for DT_NULL (cherry-pick of 138b205ea9efc117fe522c2d7191378023a6e2cd) Change-Id: Ia895cb3018df55554627f1f61dcdfdada4a961ce --- linker/linker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linker/linker.cpp b/linker/linker.cpp index b27595389..cbdca8e9d 100755 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -799,7 +799,7 @@ static int soinfo_unload(soinfo* si) { TRACE("unloading '%s'\n", si->name); 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) { const char* library_name = si->strtab + d->d_un.d_val; soinfo* lsi = find_loaded_library(library_name);