mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-12 00:58:49 +00:00
The '--lto' option is a confusing way of telling objtool to do stack validation despite it being a linked object. It's no longer needed now that an explicit '--stackval' option exists. The '--vmlinux' option is also redundant. Remove both options in favor of a straightforward '--link' option which identifies a linked object. Also, implicitly set '--link' with a warning if the user forgets to do so and we can tell that it's a linked object. This makes it easier for manual vmlinux runs. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Miroslav Benes <mbenes@suse.cz> Link: https://lkml.kernel.org/r/dcd3ceffd15a54822c6183e5766d21ad06082b45.1650300597.git.jpoimboe@redhat.com
45 lines
789 B
C
45 lines
789 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2015 Josh Poimboeuf <jpoimboe@redhat.com>
|
|
*/
|
|
#ifndef _BUILTIN_H
|
|
#define _BUILTIN_H
|
|
|
|
#include <subcmd/parse-options.h>
|
|
|
|
extern const struct option check_options[];
|
|
|
|
struct opts {
|
|
/* actions: */
|
|
bool dump_orc;
|
|
bool hack_jump_label;
|
|
bool hack_noinstr;
|
|
bool ibt;
|
|
bool mcount;
|
|
bool noinstr;
|
|
bool orc;
|
|
bool retpoline;
|
|
bool sls;
|
|
bool stackval;
|
|
bool static_call;
|
|
bool uaccess;
|
|
|
|
/* options: */
|
|
bool backtrace;
|
|
bool backup;
|
|
bool dryrun;
|
|
bool link;
|
|
bool module;
|
|
bool no_unreachable;
|
|
bool sec_address;
|
|
bool stats;
|
|
};
|
|
|
|
extern struct opts opts;
|
|
|
|
extern int cmd_parse_options(int argc, const char **argv, const char * const usage[]);
|
|
|
|
extern int objtool_run(int argc, const char **argv);
|
|
|
|
#endif /* _BUILTIN_H */
|