objtool: Move macros describing structures to arch-dependent code
authorJulien Thierry <jthierry@redhat.com>
Fri, 4 Sep 2020 15:30:21 +0000 (16:30 +0100)
committerJosh Poimboeuf <jpoimboe@redhat.com>
Thu, 10 Sep 2020 15:43:13 +0000 (10:43 -0500)
commitc8ea0d672521ef663f0f9a77faa94d0d47102d77
tree5f8a0ec400abdbc6c4ae035721a9e5b017426230
parentbb090fdb70ecc51c91e1d86345adae064caa06c8
objtool: Move macros describing structures to arch-dependent code

Some macros are defined to describe the size and layout of structures
exception_table_entry, jump_entry and alt_instr. These values can vary
from one architecture to another.

Have the values be defined by arch specific code.

Suggested-by: Raphael Gault <raphael.gault@arm.com>
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/include/arch_special.h [new file with mode: 0644]
tools/objtool/special.c