Skip to content

Commit 6782f71

Browse files
committed
[asan] Add config for AArch64 Linux with 39-bit VA.
This is leveraging work which has already been done for Android, which ships 39-bit VA kernels, and extending it to other embedded Linux targets. (SANITIZER_AARCH64_39BIT_VA was added in 58c8f57.)
1 parent 58c8f57 commit 6782f71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/asan/asan_allocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ const uptr kAllocatorSpace = ~(uptr)0;
200200
# if defined(__powerpc64__)
201201
const uptr kAllocatorSize = 0x20000000000ULL; // 2T.
202202
typedef DefaultSizeClassMap SizeClassMap;
203-
# elif defined(__aarch64__) && SANITIZER_ANDROID
203+
# elif defined(__aarch64__) && (SANITIZER_ANDROID || defined(SANITIZER_AARCH64_39BIT_VA))
204204
// Android needs to support 39, 42 and 48 bit VMA.
205205
const uptr kAllocatorSize = 0x2000000000ULL; // 128G.
206206
typedef VeryCompactSizeClassMap SizeClassMap;

0 commit comments

Comments
 (0)