diff options
author | Viktor Kutuzov <vkutuzov@accesssoftek.com> | 2014-11-28 11:42:55 +0000 |
---|---|---|
committer | Viktor Kutuzov <vkutuzov@accesssoftek.com> | 2014-11-28 11:42:55 +0000 |
commit | 58fc35cb4794a3129f5d11f63ce01f1e16484ad7 (patch) | |
tree | a81efdb8cb8ca162d452e3e90b5402fc9fd14626 /lib/msan/msan.cc | |
parent | 2af488f07b23589bc9bb6d0d6cccadf645439272 (diff) |
[Msan] Generalize mapping facilities to add FreeBSD support
Differential Revision: http://reviews.llvm.org/D6387
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan.cc')
-rw-r--r-- | lib/msan/msan.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/msan/msan.cc b/lib/msan/msan.cc index 09622c462..523bf9465 100644 --- a/lib/msan/msan.cc +++ b/lib/msan/msan.cc @@ -383,8 +383,7 @@ void __msan_init() { __msan_clear_on_return(); if (__msan_get_track_origins()) VPrintf(1, "msan_track_origins\n"); - if (!InitShadow(/* prot1 */ true, /* prot2 */ true, - /* map_shadow */ true, __msan_get_track_origins())) { + if (!InitShadow(/* map_shadow */ true, __msan_get_track_origins())) { Printf("FATAL: MemorySanitizer can not mmap the shadow memory.\n"); Printf("FATAL: Make sure to compile with -fPIE and to link with -pie.\n"); Printf("FATAL: Disabling ASLR is known to cause this error.\n"); |