[asan] fix fixed mapping for mac (ASAN_FLEXIBLE_MAPPING_AND_OFFSET=0)
authorKostya Serebryany <kcc@google.com>
Wed, 13 Feb 2013 10:15:03 +0000 (10:15 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 13 Feb 2013 10:15:03 +0000 (10:15 +0000)
llvm-svn: 175049

compiler-rt/lib/asan/asan_mapping.h

index 4cf0675..3e7fc6b 100644 (file)
@@ -36,7 +36,11 @@ extern SANITIZER_INTERFACE_ATTRIBUTE uptr __asan_mapping_offset;
 #   if defined(__powerpc64__)
 #    define SHADOW_OFFSET (1ULL << 41)
 #   else
-#    define SHADOW_OFFSET 0x7fff8000ULL
+#    if ASAN_MAC
+#     define SHADOW_OFFSET (1ULL << 44)
+#    else
+#     define SHADOW_OFFSET 0x7fff8000ULL
+#    endif
 #   endif
 #  endif
 # endif