OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e029f5e
)
utils: Fix ldd segfault
author
Natanael Copa
<ncopa@alpinelinux.org>
Mon, 24 May 2010 07:07:45 +0000
(09:07 +0200)
committer
Carmelo Amoroso
<carmelo.amoroso@st.com>
Mon, 24 May 2010 07:07:45 +0000
(09:07 +0200)
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>
utils/ldd.c
patch
|
blob
|
history
diff --git
a/utils/ldd.c
b/utils/ldd.c
index
7411c32
..
3858c81
100644
(file)
--- 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)