/* SPDX-License-Identifier: LGPL-2.1-or-later */
-#include "analyze-elf.h"
+#include "analyze.h"
+#include "analyze-inspect-elf.h"
#include "elf-util.h"
#include "errno-util.h"
#include "fd-util.h"
#include "path-util.h"
#include "strv.h"
-int analyze_elf(char **filenames, JsonFormatFlags json_flags) {
+static int analyze_elf(char **filenames, JsonFormatFlags json_flags) {
char **filename;
int r;
return 0;
}
+
+int do_elf_inspection(int argc, char *argv[], void *userdata) {
+ pager_open(arg_pager_flags);
+
+ return analyze_elf(strv_skip(argv, 1), arg_json_format_flags);
+}
#include "analyze-critical-chain.h"
#include "analyze-dot.h"
#include "analyze-dump.h"
-#include "analyze-elf.h"
#include "analyze-exit-status.h"
#include "analyze-filesystems.h"
+#include "analyze-inspect-elf.h"
#include "analyze-log-control.h"
#include "analyze-plot.h"
#include "analyze-security.h"
return verify_units(filenames, arg_scope, arg_man, arg_generators, arg_recursive_errors, arg_root);
}
-static int do_elf_inspection(int argc, char *argv[], void *userdata) {
- pager_open(arg_pager_flags);
-
- return analyze_elf(strv_skip(argv, 1), arg_json_format_flags);
-}
-
static int help(int argc, char *argv[], void *userdata) {
_cleanup_free_ char *link = NULL, *dot_link = NULL;
int r;