Please checkout patches for GCC 7: https://github.com/hjl-tools/gcc/commits/hjl/indirect/gcc-7-branch/master
For GCC trunk: https://github.com/hjl-tools/gcc/commits/hjl/indirect/master H.J. > -----Original Message----- > From: David Woodhouse [mailto:dw...@infradead.org] > Sent: Sunday, January 07, 2018 9:33 AM > To: Lu, Hongjiu <hongjiu...@intel.com>; Andi Kleen <a...@linux.intel.com>; > Van De Ven, Arjan <arjan.van.de....@intel.com>; Tsimbalist, Igor V > <igor.v.tsimbal...@intel.com> > Cc: Paul Turner <p...@google.com>; LKML <linux-kernel@vger.kernel.org>; > Linus Torvalds <torva...@linux-foundation.org>; Greg Kroah-Hartman > <gre...@linux-foundation.org>; Tim Chen <tim.c.c...@linux.intel.com>; > Hansen, Dave <dave.han...@intel.com>; t...@linutronix.de; Kees Cook > <keesc...@google.com>; Rik van Riel <r...@redhat.com>; Peter Zijlstra > <pet...@infradead.org>; Andy Lutomirski <l...@amacapital.net>; Jiri > Kosina <ji...@kernel.org>; gno...@lxorguk.ukuu.org.uk > Subject: Re: [RFC PATCH 13/12] Retpoline vs. > CONFIG_TRIM_UNUSED_SYMBOLS > > On Sun, 2018-01-07 at 15:09 +0000, Lu, Hongjiu wrote: > > Sure, I can use __x86_indirect_thunk_rax. > > Great, thanks. > > I've made that change on top of your 20171219 patch set which is the > latest I've seen, and pushed it to my tree at > http://git.infradead.org/users/dwmw2/gcc- > retpoline.git/shortlog/refs/heads/retpoline-20180107 > > I assume you'll want to redo those patches so that it's > __x86_indirect_thunk_rax from the start, rather than starting with dots > and then changing it, but I'll let you deal with that and push it > upstream. Building compiler now, and then I'll update and simplify the > kernel patches accordingly.