提交 9e0b74a4 编写于 作者: P Paul Brook

Strace mprotect flags.

Teach strace code about linux specific mprotect flags.
Signed-off-by: NPaul Brook <paul@codesourcery.com>
上级 0e1c9c54
......@@ -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,
};
......
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册