Re: [PATCH v2] kbuild: add -fcf-protection=none when using retpoline flags

From: Masahiro Yamada
Date: Wed Jul 17 2019 - 13:23:08 EST


On Thu, Jul 18, 2019 at 1:07 AM Seth Forshee <seth.forshee@xxxxxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxxxxx>

Applied to linux-kbuild. Thanks.

--
Best Regards
Masahiro Yamada