diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2015-09-11 13:55:00 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2015-09-11 13:55:00 +0000 |
commit | 00f3423844e696819bb02b547474804b8a4f9177 (patch) | |
tree | e84c0de0afd508c570ab7ccefc992065ab14b82b /lib/msan/msan.cc | |
parent | fa62bf64e3573be081058a93f1a76ba3e94f7ce5 (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.cc | 2 |
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(); |