* dyn_load.c: Its possible for linkmap->l_addr to be null for the
linker entry on some systems (Android/Bionic based libc's)
svn path=/trunk/mono/; revision=158239
+2010-05-31 Geoff Norton <gnorton@novell.com>
+
+ * dyn_load.c: Its possible for linkmap->l_addr to be null for the
+ linker entry on some systems (Android/Bionic based libc's)
+
2010-04-23 Geoff Norton <gnorton@novell.com>
* include/private/gcconfig.h: Darwin x86-64 bit support.
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++)) ) {