From b3c1442c6c0b678a76f25afaffed804dbd3f142f Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Mon, 16 May 2022 17:07:52 +0100 Subject: [PATCH] [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 --- compiler-rt/lib/asan/asan_mapping.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler-rt/lib/asan/asan_mapping.h b/compiler-rt/lib/asan/asan_mapping.h index e448d97..cc5f583 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__) -- 2.7.4