// SPDX-License-Identifier: GPL-2.0-or-later1/*2* Copyright (C) 2020 Matt Helsley <[email protected]>3* Weak definitions necessary to compile objtool without4* some subcommands (e.g. check, orc).5*/67#include <stdbool.h>8#include <errno.h>9#include <objtool/objtool.h>10#include <objtool/arch.h>11#include <objtool/builtin.h>1213#define UNSUPPORTED(name) \14({ \15fprintf(stderr, "error: objtool: " name " not implemented\n"); \16return ENOSYS; \17})1819int __weak orc_dump(const char *_objname)20{21UNSUPPORTED("ORC");22}2324int __weak orc_create(struct objtool_file *file)25{26UNSUPPORTED("ORC");27}2829int __weak cmd_klp(int argc, const char **argv)30{31UNSUPPORTED("klp");32}333435