Re: [PATCH v2 5/9] objtool: Make relocation in alternative handling arch dependent

From: Julien Thierry
Date: Fri Jul 31 2020 - 03:24:37 EST




On 7/30/20 3:42 PM, Josh Poimboeuf wrote:
On Thu, Jul 30, 2020 at 10:46:48AM +0100, Julien Thierry wrote:
As pointed out by the comment in handle_group_alt(), support of
relocation for instructions in an alternative group depends on whether
arch specific kernel code handles it.

So, let objtool arch specific code decide whether a relocation for
the alternative section should be accepted.

Reviewed-by: Miroslav Benes <mbenes@xxxxxxx>
Signed-off-by: Julien Thierry <jthierry@xxxxxxxxxx>
---
tools/objtool/arch/x86/arch_special.c | 13 +++++++++++++

The "arch" in "arch_special.c" is redundant, how about special.c?


Yes, that makes sense.

--
Julien Thierry