On Wed, Feb 16, 2022 at 10:47:52AM +0100, Jan Beulich wrote: > On 16.02.2022 10:02, Roger Pau Monne wrote: > > Detect whether the compiler supports clang retpoline option and enable > > by default if available, just like it's done for gcc. > > > > Note clang already disables jump tables when retpoline is enabled, so > > there's no need to also pass the fno-jump-tables parameter. > > That's one of the secondary gcc side arrangements. What about the other > (-mindirect-branch-register)?
clang already passes the return address on a register always on amd64 so that's not needed either. I can add a comment like I've done for no-jump-tables. > > Reported-by: Jan Beulich <[email protected]> > > That's Andrew, not me? Ops, sorry, I got that mixed up then. Thanks, Roger.
