diff options
| author | Peter Zijlstra <[email protected]> | 2020-08-06 15:14:09 -0700 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2021-02-23 12:46:56 -0800 |
| commit | 99d0021569c71c325f41a7dd0a08a380010ce95c (patch) | |
| tree | 95d3a5bbeb4923e1aa67c06f30115882ecc8ed3b /tools/objtool/builtin.h | |
| parent | 2b8689520520175075ca97bc4eaf51ff3f7253aa (diff) | |
objtool: Add a pass for generating __mcount_loc
Add the --mcount option for generating __mcount_loc sections
needed for dynamic ftrace. Using this pass requires the kernel to
be compiled with -mfentry and CC_USING_NOP_MCOUNT to be defined
in Makefile.
Link: https://lore.kernel.org/lkml/[email protected]/
Signed-off-by: Peter Zijlstra <[email protected]>
[Sami: rebased, dropped config changes, fixed to actually use --mcount,
and wrote a commit message.]
Signed-off-by: Sami Tolvanen <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Diffstat (limited to 'tools/objtool/builtin.h')
| -rw-r--r-- | tools/objtool/builtin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/builtin.h b/tools/objtool/builtin.h index 85c979caa367..94565a72b701 100644 --- a/tools/objtool/builtin.h +++ b/tools/objtool/builtin.h @@ -8,7 +8,7 @@ #include <subcmd/parse-options.h> extern const struct option check_options[]; -extern bool no_fp, no_unreachable, retpoline, module, backtrace, uaccess, stats, validate_dup, vmlinux; +extern bool no_fp, no_unreachable, retpoline, module, backtrace, uaccess, stats, validate_dup, vmlinux, mcount; extern int cmd_check(int argc, const char **argv); extern int cmd_orc(int argc, const char **argv); |