]> Git Repo - linux.git/commit
kbuild: add -fcf-protection=none when using retpoline flags
authorSeth Forshee <[email protected]>
Wed, 17 Jul 2019 16:06:26 +0000 (11:06 -0500)
committerMasahiro Yamada <[email protected]>
Sat, 20 Jul 2019 02:20:24 +0000 (11:20 +0900)
commit29be86d7f9cb18df4123f309ac7857570513e8bc
tree60fdf871b68f29be66d9221d505e78f77f59ad93
parent67bf47452ea00edd90e796054229b651e64b82c1
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 <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Makefile
This page took 0.066849 seconds and 4 git commands to generate.