Skip to content

Commit 906c1b8

Browse files
vapierRiku Voipio
authored and
Riku Voipio
committed
linux-user: decode MAP_{UNINITIALIZED,EXECUTABLE} in strace
Signed-off-by: Mike Frysinger <[email protected]> Signed-off-by: Riku Voipio <[email protected]>
1 parent d8035d4 commit 906c1b8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

linux-user/strace.c

+4
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ UNUSED static struct flags mmap_flags[] = {
398398
FLAG_TARGET(MAP_DENYWRITE),
399399
FLAG_TARGET(MAP_FIXED),
400400
FLAG_TARGET(MAP_GROWSDOWN),
401+
FLAG_TARGET(MAP_EXECUTABLE),
401402
#ifdef MAP_LOCKED
402403
FLAG_TARGET(MAP_LOCKED),
403404
#endif
@@ -407,6 +408,9 @@ UNUSED static struct flags mmap_flags[] = {
407408
FLAG_TARGET(MAP_NORESERVE),
408409
#ifdef MAP_POPULATE
409410
FLAG_TARGET(MAP_POPULATE),
411+
#endif
412+
#ifdef TARGET_MAP_UNINITIALIZED
413+
FLAG_TARGET(MAP_UNINITIALIZED),
410414
#endif
411415
FLAG_END,
412416
};

linux-user/syscall_defs.h

+1
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,7 @@ struct target_winsize {
999999
#define TARGET_MAP_NORESERVE 0x4000 /* don't check for reservations */
10001000
#define TARGET_MAP_POPULATE 0x8000 /* populate (prefault) pagetables */
10011001
#define TARGET_MAP_NONBLOCK 0x10000 /* do not block on IO */
1002+
#define TARGET_MAP_UNINITIALIZED 0x4000000 /* for anonymous mmap, memory could be uninitialized */
10021003
#endif
10031004

10041005
#if (defined(TARGET_I386) && defined(TARGET_ABI32)) || defined(TARGET_ARM) || defined(TARGET_CRIS)

0 commit comments

Comments
 (0)