Re: [PATCH v2 1/4] objtool: Move object file loading out of check

From: Matt Helsley
Date: Mon Jun 08 2020 - 14:49:30 EST


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@xxxxxxxxxx>

Reviewed-by: Matt Helsley <mhelsley@xxxxxxxxxx>

> ---
> 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(-)