Re: [PATCH] x86/alternatives: Fix optimize_nops() checking

From: Linus Torvalds
Date: Wed Jan 10 2018 - 16:17:54 EST


On Wed, Jan 10, 2018 at 1:11 PM, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> Wouldn't it be much better to simply do it as part of relocation instead?

.. except we only do real relocation for modules, and depend on the
linker doing everything for us (handle_relocations() at load-time) I
think.

So it's somewhat more involved surgery. Which explains the hack.

Nasty.

Linus