File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -398,6 +398,7 @@ UNUSED static struct flags mmap_flags[] = {
398
398
FLAG_TARGET (MAP_DENYWRITE ),
399
399
FLAG_TARGET (MAP_FIXED ),
400
400
FLAG_TARGET (MAP_GROWSDOWN ),
401
+ FLAG_TARGET (MAP_EXECUTABLE ),
401
402
#ifdef MAP_LOCKED
402
403
FLAG_TARGET (MAP_LOCKED ),
403
404
#endif
@@ -407,6 +408,9 @@ UNUSED static struct flags mmap_flags[] = {
407
408
FLAG_TARGET (MAP_NORESERVE ),
408
409
#ifdef MAP_POPULATE
409
410
FLAG_TARGET (MAP_POPULATE ),
411
+ #endif
412
+ #ifdef TARGET_MAP_UNINITIALIZED
413
+ FLAG_TARGET (MAP_UNINITIALIZED ),
410
414
#endif
411
415
FLAG_END ,
412
416
};
Original file line number Diff line number Diff line change @@ -999,6 +999,7 @@ struct target_winsize {
999
999
#define TARGET_MAP_NORESERVE 0x4000 /* don't check for reservations */
1000
1000
#define TARGET_MAP_POPULATE 0x8000 /* populate (prefault) pagetables */
1001
1001
#define TARGET_MAP_NONBLOCK 0x10000 /* do not block on IO */
1002
+ #define TARGET_MAP_UNINITIALIZED 0x4000000 /* for anonymous mmap, memory could be uninitialized */
1002
1003
#endif
1003
1004
1004
1005
#if (defined(TARGET_I386 ) && defined(TARGET_ABI32 )) || defined(TARGET_ARM ) || defined(TARGET_CRIS )
You can’t perform that action at this time.
0 commit comments