Messages in this thread | | | Date | Mon, 8 Jun 2020 11:49:24 -0700 | From | Matt Helsley <> | Subject | Re: [PATCH v2 1/4] objtool: Move object file loading out of check |
| |
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 <jthierry@redhat.com>
Reviewed-by: Matt Helsley <mhelsley@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(-)
| |