diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-11-19 19:50:25 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-12-08 13:57:04 +0300 |
commit | 68cf4f2a72ef8786e6b7af6fd9a89f27ac0f520d (patch) | |
tree | d2b9e98aed3cee4c9ecd35cddc14ea07e4f11e32 /arch/x86/math-emu/reg_norm.S | |
parent | b2f825bfeda884f9d40386cc7d089d023017d2dd (diff) | |
download | linux-68cf4f2a72ef8786e6b7af6fd9a89f27ac0f520d.tar.xz |
x86: Use -mindirect-branch-cs-prefix for RETPOLINE builds
In order to further enable commit:
bbe2df3f6b6d ("x86/alternative: Try inline spectre_v2=retpoline,amd")
add the new GCC flag -mindirect-branch-cs-prefix:
https://gcc.gnu.org/g:2196a681d7810ad8b227bf983f38ba716620545e
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952
https://bugs.llvm.org/show_bug.cgi?id=52323
to RETPOLINE=y builds. This should allow fully inlining retpoline,amd
for GCC builds.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lkml.kernel.org/r/20211119165630.276205624@infradead.org
Diffstat (limited to 'arch/x86/math-emu/reg_norm.S')
0 files changed, 0 insertions, 0 deletions