|
From: <sv...@va...> - 2011-07-12 06:29:14
|
Author: sewardj
Date: 2011-07-12 07:24:23 +0100 (Tue, 12 Jul 2011)
New Revision: 11878
Log:
Ignore ELF phdrs that have a p_memsz of zero, as appears to happen
on Android. Bug 266035 comment 30. (John Reiser, jr...@bi...)
Modified:
trunk/coregrind/m_ume/elf.c
Modified: trunk/coregrind/m_ume/elf.c
===================================================================
--- trunk/coregrind/m_ume/elf.c 2011-07-12 06:19:05 UTC (rev 11877)
+++ trunk/coregrind/m_ume/elf.c 2011-07-12 06:24:23 UTC (rev 11878)
@@ -390,7 +390,7 @@
ESZ(Phdr) *iph = &interp->p[j];
ESZ(Addr) end;
- if (iph->p_type != PT_LOAD)
+ if (iph->p_type != PT_LOAD || iph->p_memsz == 0)
continue;
if (!baseaddr_set) {
|