From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=46337 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOrRd-0008UJ-L8 for qemu-devel@nongnu.org; Wed, 16 Jun 2010 08:10:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOrRc-0001RR-Cx for qemu-devel@nongnu.org; Wed, 16 Jun 2010 08:10:13 -0400 Received: from mail.codesourcery.com ([38.113.113.100]:60258) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOrRc-0001RH-4h for qemu-devel@nongnu.org; Wed, 16 Jun 2010 08:10:12 -0400 From: Paul Brook Date: Wed, 16 Jun 2010 13:10:05 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201006161310.05744.paul@codesourcery.com> Subject: [Qemu-devel] [PATCH,APPLIED] Strace mprotect flags. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Teach strace code about linux specific mprotect flags. Signed-off-by: Paul Brook --- linux-user/strace.c | 3 +++ linux-user/syscall_defs.h | 6 ++++++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index d77053b..bf9a0d9 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -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, }; diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 681021c..46cb05e 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -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 */ -- 1.7.1