diff options
author | Seth Forshee <seth.forshee@canonical.com> | 2019-07-17 19:06:26 +0300 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-07-20 05:20:24 +0300 |
commit | 29be86d7f9cb18df4123f309ac7857570513e8bc (patch) | |
tree | 60fdf871b68f29be66d9221d505e78f77f59ad93 /arch/x86/mm/pti.c | |
parent | 67bf47452ea00edd90e796054229b651e64b82c1 (diff) | |
download | linux-29be86d7f9cb18df4123f309ac7857570513e8bc.tar.xz |
kbuild: add -fcf-protection=none when using retpoline flags
The gcc -fcf-protection=branch option is not compatible with
-mindirect-branch=thunk-extern. The latter is used when
CONFIG_RETPOLINE is selected, and this will fail to build with
a gcc which has -fcf-protection=branch enabled by default. Adding
-fcf-protection=none when building with retpoline enabled
prevents such build failures.
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/x86/mm/pti.c')
0 files changed, 0 insertions, 0 deletions