]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - tools/objtool/check.c
objtool: Make relocation in alternative handling arch dependent
authorJulien Thierry <jthierry@redhat.com>
Fri, 4 Sep 2020 15:30:23 +0000 (16:30 +0100)
committerJosh Poimboeuf <jpoimboe@redhat.com>
Thu, 10 Sep 2020 15:43:13 +0000 (10:43 -0500)
commit45245f51f9a4b9a883a8c94468473c1de9b88153
treeea2106dc24c4668b79fb58f5167865f8eb83bd06
parenteda3dc905834dc9c99132f987f77b68cf53a8682
objtool: Make relocation in alternative handling arch dependent

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@suse.cz>
Signed-off-by: Julien Thierry <jthierry@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
tools/objtool/arch/x86/special.c
tools/objtool/check.c
tools/objtool/check.h
tools/objtool/special.h