forked from OSchip/llvm-project
Add NetBSD/x86_64 mapping in MSan
Summary: Reuse the Linux new mapping as it is. Sponsored by <The NetBSD Foundation> Reviewers: joerg, vitalybuka, eugenis Reviewed By: vitalybuka Subscribers: llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D41023 llvm-svn: 320218
This commit is contained in:
parent
c667c1f47a
commit
9ecd493129
|
@ -203,7 +203,7 @@ const MappingDesc kMemoryLayout[] = {
|
|||
#define MEM_TO_SHADOW(mem) (LINEARIZE_MEM((mem)) + 0x100000000000ULL)
|
||||
#define SHADOW_TO_ORIGIN(shadow) (((uptr)(shadow)) + 0x280000000000)
|
||||
|
||||
#elif SANITIZER_LINUX && SANITIZER_WORDSIZE == 64
|
||||
#elif SANITIZER_NETBSD || (SANITIZER_LINUX && SANITIZER_WORDSIZE == 64)
|
||||
|
||||
#ifdef MSAN_LINUX_X86_64_OLD_MAPPING
|
||||
// Requries PIE binary and ASLR enabled.
|
||||
|
|
|
@ -62,7 +62,8 @@ struct MsanMapUnmapCallback {
|
|||
};
|
||||
typedef SizeClassAllocator32<AP32> PrimaryAllocator;
|
||||
#elif defined(__x86_64__)
|
||||
#if SANITIZER_LINUX && !defined(MSAN_LINUX_X86_64_OLD_MAPPING)
|
||||
#if SANITIZER_NETBSD || \
|
||||
(SANITIZER_LINUX && !defined(MSAN_LINUX_X86_64_OLD_MAPPING))
|
||||
static const uptr kAllocatorSpace = 0x700000000000ULL;
|
||||
#else
|
||||
static const uptr kAllocatorSpace = 0x600000000000ULL;
|
||||
|
|
Loading…
Reference in New Issue