objtool: Ditch subcommands
authorJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 18 Apr 2022 16:50:27 +0000 (09:50 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 22 Apr 2022 10:32:01 +0000 (12:32 +0200)
commitb51277eb9775ce916f9efd2c51533e481180c1e8
tree41284a6b5ef00419d8ac09f8820636d67aa05131
parent2daf7faba7ded8703e4b4ebc8b161f22272fc91a
objtool: Ditch subcommands

Objtool has a fairly singular focus.  It runs on object files and does
validations and transformations which can be combined in various ways.
The subcommand model has never been a good fit, making it awkward to
combine and remove options.

Remove the "check" and "orc" subcommands in favor of a more traditional
cmdline option model.  This makes it much more flexible to use, and
easier to port individual features to other arches.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lkml.kernel.org/r/5c61ebf805e90aefc5fa62bc63468ffae53b9df6.1650300597.git.jpoimboe@redhat.com
scripts/Makefile.build
scripts/link-vmlinux.sh
tools/objtool/Build
tools/objtool/Makefile
tools/objtool/builtin-check.c
tools/objtool/builtin-orc.c [deleted file]
tools/objtool/check.c
tools/objtool/include/objtool/builtin.h
tools/objtool/objtool.c
tools/objtool/weak.c