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

2020-07-30 Thread Julien Thierry
On 7/30/20 3:09 PM, Josh Poimboeuf wrote: On Thu, Jul 30, 2020 at 10:41:40AM +0100, Julien Thierry wrote: +struct objtool_file *objtool_setup_file(const char *_objname) +{ + if (objname) { + if (strcmp(objname, _objname)) { + WARN("won't handle more t

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

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 10:41:40AM +0100, Julien Thierry wrote: > +struct objtool_file *objtool_setup_file(const char *_objname) > +{ > + if (objname) { > + if (strcmp(objname, _objname)) { > + WARN("won't handle more than one file at a time"); > +

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

2020-07-30 Thread Julien Thierry
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. Reviewed-