RE: [RFC PATCH 13/12] Retpoline vs. CONFIG_TRIM_UNUSED_SYMBOLS

From: Lu, Hongjiu
Date: Sun Jan 07 2018 - 12:57:26 EST


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:dwmw2@xxxxxxxxxxxxx]
> Sent: Sunday, January 07, 2018 9:33 AM
> To: Lu, Hongjiu <hongjiu.lu@xxxxxxxxx>; Andi Kleen <ak@xxxxxxxxxxxxxxx>;
> Van De Ven, Arjan <arjan.van.de.ven@xxxxxxxxx>; Tsimbalist, Igor V
> <igor.v.tsimbalist@xxxxxxxxx>
> Cc: Paul Turner <pjt@xxxxxxxxxx>; LKML <linux-kernel@xxxxxxxxxxxxxxx>;
> Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>; Greg Kroah-Hartman
> <gregkh@xxxxxxxxxxxxxxxxxxxx>; Tim Chen <tim.c.chen@xxxxxxxxxxxxxxx>;
> Hansen, Dave <dave.hansen@xxxxxxxxx>; tglx@xxxxxxxxxxxxx; Kees Cook
> <keescook@xxxxxxxxxx>; Rik van Riel <riel@xxxxxxxxxx>; Peter Zijlstra
> <peterz@xxxxxxxxxxxxx>; Andy Lutomirski <luto@xxxxxxxxxxxxxx>; Jiri
> Kosina <jikos@xxxxxxxxxx>; gnomes@xxxxxxxxxxxxxxxxxxx
> 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.