Re: [RFC PATCH 0/5] x86: dynamic indirect call promotion

From: Josh Poimboeuf
Date: Wed Nov 28 2018 - 23:36:42 EST


On Wed, Nov 28, 2018 at 07:24:08PM -0800, Andy Lutomirski wrote:
> To be clear, that wasnât a NAK. It was merely a âthis is alarming.â
>
> Hey Josh - you could potentially do the same hack to generate the
> static call tables. Take that, objtool.

Ha, after witnessing Nadav's glorious hack, I considered that. But I
didn't see a way to pull it off, because asm macro conditionals don't
seem to have a way to test for a regex (or at least a named prefix) for
the call target.

I'd need a way to detect "call __static_call_tramp_<whatever>".

--
Josh