[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <02a2ff3df3a0093a4f283e09f583d42d@overdrivepizza.com>
Date: Fri, 18 Feb 2022 14:12:40 -0800
From: Joao Moreira <joao@...rdrivepizza.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: x86@...nel.org, hjl.tools@...il.com, jpoimboe@...hat.com,
andrew.cooper3@...rix.com, linux-kernel@...r.kernel.org,
ndesaulniers@...gle.com, keescook@...omium.org,
samitolvanen@...gle.com, mark.rutland@....com,
alyssa.milburn@...el.com
Subject: Re: [PATCH 05/29] x86: Base IBT bits
> +config CC_HAS_IBT
> + # GCC >= 9 and binutils >= 2.29
> + # Retpoline check to work around
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93654
> + def_bool $(cc-option, -fcf-protection=branch
> -mindirect-branch-register) && $(as-instr,endbr64)
> +
Is -mindirect-branch-register breaks compiling with clang. Maybe we
should we do instead?
+ def_bool ($(cc-option, -fcf-protection=branch
-mindirect-branch-register) || $(cc-option, -mretpoline-external-thunk))
&& $(as-instr,endbr64)
Powered by blists - more mailing lists