* dyn_load.c: Fix one other place where l_addr could be null on
bionic.
svn path=/trunk/mono/; revision=158891
+2010-06-14 Geoff Norton <gnorton@novell.com>
+
+ * dyn_load.c: Fix one other place where l_addr could be null on
+ bionic.
+
2010-05-31 Geoff Norton <gnorton@novell.com>
* dyn_load.c: Its possible for linkmap->l_addr to be null for the
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++)) ) {