r368697 - Enable memtag sanitizer in all AArch64 toolchains
Momchil Velikov via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 13 07:20:23 PDT 2019
Author: chill
Date: Tue Aug 13 07:20:23 2019
New Revision: 368697
URL: http://llvm.org/viewvc/llvm-project?rev=368697&view=rev
Log:
Enable memtag sanitizer in all AArch64 toolchains
That sanitizer does not have runtime library or other dependencies.
Differential Revision: https://reviews.llvm.org/D65642
Modified:
cfe/trunk/lib/Driver/ToolChain.cpp
cfe/trunk/lib/Driver/ToolChains/Linux.cpp
Modified: cfe/trunk/lib/Driver/ToolChain.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChain.cpp?rev=368697&r1=368696&r2=368697&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChain.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChain.cpp Tue Aug 13 07:20:23 2019
@@ -923,6 +923,9 @@ SanitizerMask ToolChain::getSupportedSan
if (getTriple().getArch() == llvm::Triple::x86_64 ||
getTriple().getArch() == llvm::Triple::aarch64)
Res |= SanitizerKind::ShadowCallStack;
+ if (getTriple().getArch() == llvm::Triple::aarch64 ||
+ getTriple().getArch() == llvm::Triple::aarch64_be)
+ Res |= SanitizerKind::MemTag;
return Res;
}
Modified: cfe/trunk/lib/Driver/ToolChains/Linux.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Linux.cpp?rev=368697&r1=368696&r2=368697&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains/Linux.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains/Linux.cpp Tue Aug 13 07:20:23 2019
@@ -1029,8 +1029,6 @@ SanitizerMask Linux::getSupportedSanitiz
Res |= SanitizerKind::HWAddress;
Res |= SanitizerKind::KernelHWAddress;
}
- if (IsAArch64)
- Res |= SanitizerKind::MemTag;
return Res;
}
More information about the cfe-commits
mailing list