Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoff Norton <grompf@sublimeintervention.com>2010-06-14 21:39:53 +0400
committerGeoff Norton <grompf@sublimeintervention.com>2010-06-14 21:39:53 +0400
commitcb8866ba83d74301e715a887fd87aac51b9e6672 (patch)
treeecf8ab124df4db21247376bb872ec974bf48fabe /libgc/dyn_load.c
parent33142e1b478715cc5e9ab03f64829dc5a58b2754 (diff)
2010-06-14 Geoff Norton <gnorton@novell.com>
* dyn_load.c: Fix one other place where l_addr could be null on bionic. svn path=/trunk/mono/; revision=158891
Diffstat (limited to 'libgc/dyn_load.c')
-rw-r--r--libgc/dyn_load.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libgc/dyn_load.c b/libgc/dyn_load.c
index 63f646244a5..a42efd4e25d 100644
--- a/libgc/dyn_load.c
+++ b/libgc/dyn_load.c
@@ -250,7 +250,10 @@ void GC_register_dynamic_libraries()
char * start;
register int i;
- e = (ElfW(Ehdr) *) lm->l_addr;
+ e = (ElfW(Ehdr) *) lm->l_addr;
+ if (e == NULL)
+ continue;
+
p = ((ElfW(Phdr) *)(((char *)(e)) + e->e_phoff));
offset = ((unsigned long)(lm->l_addr));
for( i = 0; i < (int)(e->e_phnum); ((i++),(p++)) ) {