On Mon, Jun 08, 2020 at 08:12:00AM +0100, Julien Thierry wrote: > Structure objtool_file can be used by different subcommands. In fact > it already is, by check and orc. > > Provide a function that allows to initialize objtool_file, that builtin > can call, without relying on check to do the correct setup for them and > explicitly hand the objtool_file to them. > > Signed-off-by: Julien Thierry <jthie...@redhat.com>
Reviewed-by: Matt Helsley <mhels...@vmware.com> > --- > tools/objtool/builtin-check.c | 7 ++++++- > tools/objtool/builtin-orc.c | 8 +++++++- > tools/objtool/check.c | 37 +++++++++++------------------------ > tools/objtool/objtool.c | 29 +++++++++++++++++++++++++++ > tools/objtool/objtool.h | 4 +++- > tools/objtool/weak.c | 4 +--- > 6 files changed, 57 insertions(+), 32 deletions(-)