objtool: Abstract alternative special case handling
authorJulien Thierry <jthierry@redhat.com>
Fri, 4 Sep 2020 15:30:22 +0000 (16:30 +0100)
committerJosh Poimboeuf <jpoimboe@redhat.com>
Thu, 10 Sep 2020 15:43:13 +0000 (10:43 -0500)
commiteda3dc905834dc9c99132f987f77b68cf53a8682
treecfbdd2d47ee9f477ff25f80518cfd6071e87b2d6
parentc8ea0d672521ef663f0f9a77faa94d0d47102d77
objtool: Abstract alternative special case handling

Some alternatives associated with a specific feature need to be treated
in a special way. Since the features and how to treat them vary from one
architecture to another, move the special case handling to arch specific
code.

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/Build
tools/objtool/arch/x86/special.c [new file with mode: 0644]
tools/objtool/objtool.h
tools/objtool/special.c
tools/objtool/special.h
tools/objtool/weak.c