[compiler-rt] b3c1442 - [compiler-rt] Add the FreeBSD AArch64 shadow offset

Ed Maste via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 8 14:23:05 PDT 2022


Author: Andrew Turner
Date: 2022-06-08T17:22:16-04:00
New Revision: b3c1442c6c0b678a76f25afaffed804dbd3f142f

URL: https://github.com/llvm/llvm-project/commit/b3c1442c6c0b678a76f25afaffed804dbd3f142f
DIFF: https://github.com/llvm/llvm-project/commit/b3c1442c6c0b678a76f25afaffed804dbd3f142f.diff

LOG: [compiler-rt] Add the FreeBSD AArch64 shadow offset

As with 64 bit x86 use an offset in middle of the address space scaled up
to work with the full 48 bit space.

Reviewed by: MaskRay

Differential Revision: https://reviews.llvm.org/D125757

Added: 
    

Modified: 
    compiler-rt/lib/asan/asan_mapping.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/asan/asan_mapping.h b/compiler-rt/lib/asan/asan_mapping.h
index e448d9798a1f..cc5f5836e742 100644
--- a/compiler-rt/lib/asan/asan_mapping.h
+++ b/compiler-rt/lib/asan/asan_mapping.h
@@ -176,6 +176,8 @@
 #    define ASAN_SHADOW_OFFSET_DYNAMIC
 #  elif SANITIZER_APPLE && defined(__aarch64__)
 #    define ASAN_SHADOW_OFFSET_DYNAMIC
+#  elif SANITIZER_FREEBSD && defined(__aarch64__)
+#    define ASAN_SHADOW_OFFSET_CONST 0x0000800000000000
 #  elif SANITIZER_RISCV64
 #    define ASAN_SHADOW_OFFSET_CONST 0x0000000d55550000
 #  elif defined(__aarch64__)


        


More information about the llvm-commits mailing list