|
From: <sv...@va...> - 2016-08-17 18:05:21
|
Author: iraisr
Date: Wed Aug 17 19:05:13 2016
New Revision: 15939
Log:
Follow up to SVN commit r15936.
Fix the sloppy check I introduced.
n-i-bz
Modified:
trunk/coregrind/m_ume/elf.c
Modified: trunk/coregrind/m_ume/elf.c
==============================================================================
--- trunk/coregrind/m_ume/elf.c (original)
+++ trunk/coregrind/m_ume/elf.c Wed Aug 17 19:05:13 2016
@@ -626,8 +626,7 @@
VG_(printf)("valgrind: m_ume.c: too small SUNWDTRACE size\n");
return VKI_ENOEXEC;
}
- if ((ph->p_flags & PT_SUNWDTRACE_PROTECTION)
- != PT_SUNWDTRACE_PROTECTION) {
+ if ((ph->p_flags & (PF_R | PF_W | PF_X)) != PT_SUNWDTRACE_PROTECTION) {
VG_(printf)("valgrind: m_ume.c: SUNWDTRACE protection mismatch\n");
return VKI_ENOEXEC;
}
@@ -670,7 +669,7 @@
VG_(printf)("valgrind: m_ume.c: too small SUNWDTRACE size\n");
return VKI_ENOEXEC;
}
- if ((iph->p_flags & PT_SUNWDTRACE_PROTECTION)
+ if ((iph->p_flags & (PF_R | PF_W | PF_X))
!= PT_SUNWDTRACE_PROTECTION) {
VG_(printf)("valgrind: m_ume.c: SUNWDTRACE protection "
"mismatch\n");
|