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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux