Re: [PATCH] fix compilation of 64-bit kernel with 32-bit compiler

2018-03-08 Thread Josh Poimboeuf
On Thu, Mar 08, 2018 at 10:39:44AM +0100, Peter Zijlstra wrote: > On Thu, Mar 08, 2018 at 04:09:30AM -0500, Mikulas Patocka wrote: > > > > > > On Thu, 8 Mar 2018, Peter Zijlstra wrote: > > > > > On Thu, Mar 08, 2018 at 01:11:26AM -0500, Mikulas Patocka wrote: > > > > The patch b5bc2231b8ad4387c9

Re: [PATCH] fix compilation of 64-bit kernel with 32-bit compiler

2018-03-08 Thread Peter Zijlstra
On Thu, Mar 08, 2018 at 04:09:30AM -0500, Mikulas Patocka wrote: > > > On Thu, 8 Mar 2018, Peter Zijlstra wrote: > > > On Thu, Mar 08, 2018 at 01:11:26AM -0500, Mikulas Patocka wrote: > > > The patch b5bc2231b8ad4387c9641f235ca0ad8cd300b6df ("objtool: Add > > > retpoline validation") broke comp

Re: [PATCH] fix compilation of 64-bit kernel with 32-bit compiler

2018-03-08 Thread Mikulas Patocka
On Thu, 8 Mar 2018, Peter Zijlstra wrote: > On Thu, Mar 08, 2018 at 01:11:26AM -0500, Mikulas Patocka wrote: > > The patch b5bc2231b8ad4387c9641f235ca0ad8cd300b6df ("objtool: Add > > retpoline validation") broke compiling 64-bit kernel with 32-bit compiler. > > > > This patch fixes the followi

Re: [PATCH] fix compilation of 64-bit kernel with 32-bit compiler

2018-03-07 Thread Peter Zijlstra
On Thu, Mar 08, 2018 at 01:11:26AM -0500, Mikulas Patocka wrote: > The patch b5bc2231b8ad4387c9641f235ca0ad8cd300b6df ("objtool: Add > retpoline validation") broke compiling 64-bit kernel with 32-bit compiler. > > This patch fixes the following error and a large number of "can't find > rela for r

[PATCH] fix compilation of 64-bit kernel with 32-bit compiler

2018-03-07 Thread Mikulas Patocka
The patch b5bc2231b8ad4387c9641f235ca0ad8cd300b6df ("objtool: Add retpoline validation") broke compiling 64-bit kernel with 32-bit compiler. This patch fixes the following error and a large number of "can't find rela for retpoline_safe" errors that occur when using x32 or i386 gcc. You shouldn't