diff options
Diffstat (limited to 'tools/objtool/weak.c')
| -rw-r--r-- | tools/objtool/weak.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/tools/objtool/weak.c b/tools/objtool/weak.c index 942ea5e8ac36..d6562f292259 100644 --- a/tools/objtool/weak.c +++ b/tools/objtool/weak.c @@ -7,9 +7,9 @@ #include <stdbool.h> #include <errno.h> -#include "objtool.h" - -#define __weak __attribute__((weak)) +#include <objtool/objtool.h> +#include <objtool/arch.h> +#include <objtool/builtin.h> #define UNSUPPORTED(name) \ ({ \ @@ -17,24 +17,17 @@ return ENOSYS; \ }) -const char __weak *objname; - -int __weak check(const char *_objname, bool orc) -{ - UNSUPPORTED("check subcommand"); -} - int __weak orc_dump(const char *_objname) { - UNSUPPORTED("orc"); + UNSUPPORTED("ORC"); } -int __weak create_orc(struct objtool_file *file) +int __weak orc_create(struct objtool_file *file) { - UNSUPPORTED("orc"); + UNSUPPORTED("ORC"); } -int __weak create_orc_sections(struct objtool_file *file) +int __weak cmd_klp(int argc, const char **argv) { - UNSUPPORTED("orc"); + UNSUPPORTED("klp"); } |
