summaryrefslogtreecommitdiff
path: root/lib/msan/msan.cc
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2015-09-11 13:55:00 +0000
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2015-09-11 13:55:00 +0000
commit00f3423844e696819bb02b547474804b8a4f9177 (patch)
treee84c0de0afd508c570ab7ccefc992065ab14b82b /lib/msan/msan.cc
parentfa62bf64e3573be081058a93f1a76ba3e94f7ce5 (diff)
[compiler-rt] [sanitizers] Add VMA size check at runtime
This patch adds a runtime check for asan, dfsan, msan, and tsan for architectures that support multiple VMA size (like aarch64). Currently the check only prints a warning indicating which is the VMA built and expected against the one detected at runtime. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@247413 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan.cc')
-rw-r--r--lib/msan/msan.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/msan/msan.cc b/lib/msan/msan.cc
index ce4b1a5dd..32bcaa360 100644
--- a/lib/msan/msan.cc
+++ b/lib/msan/msan.cc
@@ -375,6 +375,8 @@ void __msan_init() {
msan_init_is_running = 1;
SanitizerToolName = "MemorySanitizer";
+ CheckVMASize();
+
InitTlsSize();
CacheBinaryName();