|
From: <sv...@va...> - 2009-08-16 01:58:14
|
Author: sewardj
Date: 2009-08-16 02:48:35 +0100 (Sun, 16 Aug 2009)
New Revision: 10828
Log:
ppc32-linux: di_notify_mmap: accept data sections mapped rwx as well as ones
mapped rw-. Fixes #190820. Really, this logic is still pretty ropey; we
could do a lot better here.
Modified:
trunk/coregrind/m_debuginfo/debuginfo.c
Modified: trunk/coregrind/m_debuginfo/debuginfo.c
===================================================================
--- trunk/coregrind/m_debuginfo/debuginfo.c 2009-08-16 00:20:58 UTC (rev 10827)
+++ trunk/coregrind/m_debuginfo/debuginfo.c 2009-08-16 01:48:35 UTC (rev 10828)
@@ -699,13 +699,16 @@
x86-linux: consider if r and x
all others: consider if r and x and not w
+
+ 2009 Aug 16: apply similar kludge to ppc32-linux.
+ See http://bugs.kde.org/show_bug.cgi?id=190820
*/
is_rx_map = False;
is_rw_map = False;
-# if defined(VGA_x86)
+# if defined(VGA_x86) || defined(VGA_ppc32)
is_rx_map = seg->hasR && seg->hasX;
is_rw_map = seg->hasR && seg->hasW;
-# elif defined(VGA_amd64) || defined(VGA_ppc32) || defined(VGA_ppc64)
+# elif defined(VGA_amd64) || defined(VGA_ppc64)
is_rx_map = seg->hasR && seg->hasX && !seg->hasW;
is_rw_map = seg->hasR && seg->hasW && !seg->hasX;
# else
|