summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-05-24 09:07:45 +0200
committerCarmelo Amoroso <carmelo.amoroso@st.com>2010-05-24 09:07:45 +0200
commitb2c4199f0fd53c009858e7ce27f932a4ac92bc60 (patch)
tree9f2b50d78ec51cfe31d6c1711d25d131c7d3b280
parente029f5e73de2c195d0a87e5816f28fb09594e80f (diff)
utils: Fix ldd segfault
Fixes ldd segfault on this testcase: extern void _dl_getenv(void); void foo(void) { printf("foo: %x\n", &_dl_getenv); } linked as -shared It fixes bug #1507 Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
-rw-r--r--utils/ldd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ldd.c b/utils/ldd.c
index 7411c3244..3858c815c 100644
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -576,7 +576,7 @@ static struct library *find_elf_interpreter(ElfW(Ehdr) *ehdr)
}
newlib->name = NULL;
newlib->path = NULL;
- return NULL;
+ break;
}
}
if (newlib == NULL)