<html><head></head><body><div><br></div><div class="-x-evo-paragraph -x-evo-top-signature-spacer"><br></div><div>On Wed, 2018-02-07 at 00:16 +0000, Chandler Carruth wrote:</div><blockquote type="cite"><div dir="ltr"><div class="gmail_quote"><blockquote type="cite"><div><div>At this point, what we really want is for identical thunks to have identical names — just like we do for builtins and other stuff, to avoid having differences between clang and GCC which just end up seeming capricious and being hard to work around. Having matching command line options would be a bonus, but isn't imperative.</div></div><br></blockquote><div><br></div><div>After talking to several others (to make sure we don't have to do this whole thing yet again) we'll change the external thunk names to match what GCC is using. Hopefully this doesn't come back to bite us. =]</div><div><br></div><div>We'll also make sure those patches get backported too so that no released versions have the old behavior.</div></div></div>
</blockquote><div><br></div><div>Thank you.</div><div><br></div><div>For reference, is there a way to turn *off* the retpoline which has been enabled on the command line? </div><div><br></div><div>For init functions which run only at startup before any attacker can be in the system, we currently mark the function __attribute__((indirect_thunk("keep"))). Is there a clang equivalent?</div><div><br></div><div>It's not particularly important; a minor optimisation we can live without if we have to. </div></body></html>