Re: [RFC] x86/retpoline: Add clang support for 64-bit builds

2018-02-06 Thread Andy Lutomirski
On Tue, Feb 6, 2018 at 8:52 PM, David Woodhouse wrote: > On Tue, 2018-02-06 at 12:32 -0800, Guenter Roeck wrote: >> >> > >> Feedback, anyone ? >> >> I understand that there is no love for the ABI differences between clang >> and gcc, but that doesn't help me. Even if the patch is unacceptable >> a

Re: [RFC] x86/retpoline: Add clang support for 64-bit builds

2018-02-06 Thread David Woodhouse
On Tue, 2018-02-06 at 12:32 -0800, Guenter Roeck wrote: > > >  > Feedback, anyone ? > > I understand that there is no love for the ABI differences between clang > and gcc, but that doesn't help me. Even if the patch is unacceptable > as-is, I would like to have some feedback to get an idea if I a

Re: [RFC] x86/retpoline: Add clang support for 64-bit builds

2018-02-06 Thread Guenter Roeck
On Fri, Feb 02, 2018 at 03:30:40PM -0800, Guenter Roeck wrote: > clang has its own set of compiler options for retpoline support. > Also, the thunks required by C code have their own function names. > > For 64-bit builds, there is only a single thunk, which is easy > to support. Support for 32-bit

[RFC] x86/retpoline: Add clang support for 64-bit builds

2018-02-02 Thread Guenter Roeck
clang has its own set of compiler options for retpoline support. Also, the thunks required by C code have their own function names. For 64-bit builds, there is only a single thunk, which is easy to support. Support for 32-bit builds is more complicated - in addition to various register thunks, the