artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d16211
)
Enable kernel-address sanitizer for clang openbsd target
author
gnezdo
<gnezdo@openbsd.org>
Fri, 28 Apr 2023 12:03:49 +0000
(12:03 +0000)
committer
gnezdo
<gnezdo@openbsd.org>
Fri, 28 Apr 2023 12:03:49 +0000
(12:03 +0000)
OK deraadt@
gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.cpp
patch
|
blob
|
history
diff --git
a/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.cpp
b/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.cpp
index
1577f70
..
12e8edb
100644
(file)
--- a/
gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.cpp
+++ b/
gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.cpp
@@
-248,6
+248,10
@@
SanitizerMask OpenBSD::getSupportedSanitizers() const {
Res |= SanitizerKind::FuzzerNoLink;
}
+ if (IsX86_64) {
+ Res |= SanitizerKind::KernelAddress;
+ }
+
return Res;
}