objtool: Move struct objtool_file into arch-independent header
authorMatt Helsley <mhelsley@vmware.com>
Tue, 19 May 2020 20:55:32 +0000 (13:55 -0700)
committerJosh Poimboeuf <jpoimboe@redhat.com>
Wed, 20 May 2020 13:35:20 +0000 (08:35 -0500)
commitd37c90d47fc4657423d2ff1c3ed3fd70612a9b43
tree7fcd0a59833b9898c9c6a38a5185b61de6c38182
parentf15c648f202cd0232d4a9c98627bc08bcd6d11ee
objtool: Move struct objtool_file into arch-independent header

The objtool_file structure describes the files objtool works on,
is used by the check subcommand, and the check.h header is included
by the orc subcommands so it's presently used by all subcommands.

Since the structure will be useful in all subcommands besides check,
and some subcommands may not want to include check.h to get the
definition, split the structure out into a new header meant for use
by all objtool subcommands.

Signed-off-by: Matt Helsley <mhelsley@vmware.com>
Reviewed-by: Julien Thierry <jthierry@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
tools/objtool/check.h
tools/objtool/objtool.h [new file with mode: 0644]