Skip to contentSkip to conversation

Strace mprotect flags.

PATCH New Paul Brook 1 participant 1 message Jun 16, 2010

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

PATCH 1/1 Strace mprotect flags.

Teach strace code about linux specific mprotect flags.

---
 linux-user/strace.c       |    3 +++
 linux-user/syscall_defs.h |    6 ++++++
 2 files changed, 9 insertions(+), 0 deletions(-)
linux-user/strace.c +3 -0
index d77053b..bf9a0d9 100644
@@ -385,6 +385,9 @@ UNUSED static struct flags mmap_prot_flags[] = {
     FLAG_GENERIC(PROT_EXEC),
     FLAG_GENERIC(PROT_READ),
     FLAG_GENERIC(PROT_WRITE),
+    FLAG_TARGET(PROT_SEM),
+    FLAG_GENERIC(PROT_GROWSDOWN),
+    FLAG_GENERIC(PROT_GROWSUP),
     FLAG_END,
 };
 
linux-user/syscall_defs.h +6 -0
index 681021c..46cb05e 100644
@@ -946,6 +946,12 @@ struct target_winsize {
 
 #include "termbits.h"
 
+#if defined(TARGET_MIPS)
+#define TARGET_PROT_SEM         0x10
+#else
+#define TARGET_PROT_SEM         0x08
+#endif
+
 /* Common */
 #define TARGET_MAP_SHARED	0x01		/* Share changes */
 #define TARGET_MAP_PRIVATE	0x02		/* Changes are private */
Signature · 1 line
1.7.1