Re: [PATCH 3/3] objtool: Add relocation check for alternative sections

From: Linus Torvalds
Date: Mon Feb 10 2020 - 20:54:24 EST


On Mon, Feb 10, 2020 at 10:33 AM Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:
>
> So disallow relocations in alternative code, except where the x86 arch
> code allows it.

LGTM. Did this actually find anything? And if not, did you verify that
it would by intentionally creating a bad alternative (perhaps the
broken one from my patch?)

Linus