// 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>1011#define UNSUPPORTED(name) \12({ \13fprintf(stderr, "error: objtool: " name " not implemented\n"); \14return ENOSYS; \15})1617int __weak orc_dump(const char *_objname)18{19UNSUPPORTED("ORC");20}2122int __weak orc_create(struct objtool_file *file)23{24UNSUPPORTED("ORC");25}262728