[sanitizer] [dfsan] Unify aarch64 mapping
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 27 Nov 2015 12:42:39 +0000 (12:42 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 27 Nov 2015 12:42:39 +0000 (12:42 +0000)
commit7fe65325391a0e349567d5ec386b46a341ae374d
tree23993769af07cfbaea03805f3a1579e67ee743b6
parent2748acd4155076c048c0742585408980b32ac4eb
[sanitizer] [dfsan] Unify aarch64 mapping

This patch changes the DFSan instrumentation for aarch64 to instead
of using fixes application mask defined by SANITIZER_AARCH64_VMA
to read the application shadow mask value from compiler-rt. The value
is initialized based on runtime VAM detection.

Along with this patch a compiler-rt one will also be added to export
the shadow mask variable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254196 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
test/Instrumentation/DataFlowSanitizer/external_mask.ll [new file with mode: 0644]