diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-02-19 14:08:59 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-02-19 14:08:59 +0000 |
commit | f258050bf7dff951af2d2697920ca80c306322aa (patch) | |
tree | 6259d11cf26d9b097fa38ce7528fc53b83aa1850 /gnu | |
parent | 150e00285b3308e6f1485955f37c9931b48ea0ca (diff) |
Revert the change that enabled retpoline thunks by default. The use of
retpolines makes IBT less useful and we have enabled additional mitigations
in our kernel now that should make them (mostly) unnecessary.
ok guenther@
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/llvm/clang/lib/Driver/ToolChains/Arch/X86.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gnu/llvm/clang/lib/Driver/ToolChains/Arch/X86.cpp b/gnu/llvm/clang/lib/Driver/ToolChains/Arch/X86.cpp index c7de29996ae..3c8adf3cbc4 100644 --- a/gnu/llvm/clang/lib/Driver/ToolChains/Arch/X86.cpp +++ b/gnu/llvm/clang/lib/Driver/ToolChains/Arch/X86.cpp @@ -158,12 +158,6 @@ void x86::getX86TargetFeatures(const Driver &D, const llvm::Triple &Triple, // consider deprecating this and instead warn if the user requests external // retpoline thunks and *doesn't* request some form of retpolines. auto SpectreOpt = clang::driver::options::ID::OPT_INVALID; - if (Triple.isOSOpenBSD() && Triple.getArch() == llvm::Triple::x86_64 && - Args.hasFlag(options::OPT_mretpoline, options::OPT_mno_retpoline, true)) { - Features.push_back("+retpoline-indirect-calls"); - Features.push_back("+retpoline-indirect-branches"); - SpectreOpt = options::OPT_mretpoline; - } else if (Args.hasArgNoClaim(options::OPT_mretpoline, options::OPT_mno_retpoline, options::OPT_mspeculative_load_hardening, options::OPT_mno_speculative_load_hardening)) { |