@@ -20,6 +20,7 @@ objtool-$(SUBCMD_FPV) += cfi.o
objtool-$(SUBCMD_FPV) += insn.o
objtool-$(SUBCMD_FPV) += decode.o
objtool-$(SUBCMD_FPV) += orc_gen.o
+objtool-$(SUBCMD_FPV) += orc_dump.o
objtool-y += builtin-check.o
objtool-y += builtin-orc.o
@@ -19,6 +19,7 @@
static const char * const fpv_usage[] = {
"objtool fpv generate file.o",
+ "objtool fpv dump file.o",
NULL,
};
@@ -69,6 +70,9 @@ int cmd_fpv(int argc, const char **argv)
return elf_write(file->elf);
}
+ if (!strcmp(argv[0], "dump"))
+ return orc_dump(objname);
+
usage_with_options(fpv_usage, fpv_options);
return 0;