Skip to content

Commit 10c6031

Browse files
committed
Update PR for SANITIZER_MMAP_BEGIN
1 parent b356b2b commit 10c6031

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_platform.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,11 @@
319319
#endif
320320

321321
// The first address that can be returned by mmap.
322-
#define SANITIZER_MMAP_BEGIN 0
322+
#if SANITIZER_AIX && SANITIZER_WORDSIZE == 64
323+
# define SANITIZER_MMAP_BEGIN 0x0a00000000000000ULL
324+
#else
325+
# define SANITIZER_MMAP_BEGIN 0
326+
#endif
323327

324328
// The range of addresses which can be returned my mmap.
325329
// FIXME: this value should be different on different platforms. Larger values

0 commit comments

Comments
 (0)