artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ea1314
)
Turn on pointer-authentication on arm64 as well by default. This means
author
kettenis
<kettenis@openbsd.org>
Mon, 15 May 2023 09:58:06 +0000
(09:58 +0000)
committer
kettenis
<kettenis@openbsd.org>
Mon, 15 May 2023 09:58:06 +0000
(09:58 +0000)
we effectively enable -mbranch-protection=standard on arm64 now.
ok deraadt@
gnu/llvm/clang/lib/Driver/ToolChains/Clang.cpp
patch
|
blob
|
history
diff --git
a/gnu/llvm/clang/lib/Driver/ToolChains/Clang.cpp
b/gnu/llvm/clang/lib/Driver/ToolChains/Clang.cpp
index
524c009
..
ddc77ec
100644
(file)
--- a/
gnu/llvm/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/
gnu/llvm/clang/lib/Driver/ToolChains/Clang.cpp
@@
-1819,8
+1819,11
@@
void Clang::AddAArch64TargetArgs(const ArgList &Args,
if (IndirectBranches)
CmdArgs.push_back("-mbranch-target-enforce");
} else {
- if (Triple.isOSOpenBSD())
+ if (Triple.isOSOpenBSD()) {
+ CmdArgs.push_back("-msign-return-address=non-leaf");
+ CmdArgs.push_back("-msign-return-address-key=a_key");
CmdArgs.push_back("-mbranch-target-enforce");
+ }
}
// Handle -msve_vector_bits=<bits>