[PATCH] D98286: [Driver] Enable the kernel address sanitizer on FreeBSD
Mark Johnston via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 9 12:51:08 PST 2021
markj created this revision.
Herald added a subscriber: emaste.
markj requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Test Plan:
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D98286
Files:
clang/lib/Driver/ToolChains/FreeBSD.cpp
Index: clang/lib/Driver/ToolChains/FreeBSD.cpp
===================================================================
--- clang/lib/Driver/ToolChains/FreeBSD.cpp
+++ clang/lib/Driver/ToolChains/FreeBSD.cpp
@@ -485,8 +485,10 @@
Res |= SanitizerKind::Fuzzer;
Res |= SanitizerKind::FuzzerNoLink;
}
- if (IsX86_64)
+ if (IsX86_64) {
+ Res |= SanitizerKind::KernelAddress;
Res |= SanitizerKind::Memory;
+ }
return Res;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98286.329447.patch
Type: text/x-patch
Size: 443 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210309/1957f8b2/attachment.bin>
More information about the cfe-commits
mailing list