diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2020-09-26 01:43:53 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2021-02-23 21:46:57 +0100 |
commit | 22c8542d7b220ffc53816d47b371b1fe34341d4a (patch) | |
tree | 55e578bad8de1fb1142b4f4f694a33ab5485dcfe /scripts | |
parent | objtool: Don't autodetect vmlinux.o (diff) | |
download | linux-22c8542d7b220ffc53816d47b371b1fe34341d4a.tar.xz linux-22c8542d7b220ffc53816d47b371b1fe34341d4a.zip |
tracing: add support for objtool mcount
This change adds build support for using objtool to generate
__mcount_loc sections.
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.build | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index d94fc9ab819d..59fabd9685ee 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -238,6 +238,9 @@ endif ifdef CONFIG_X86_SMAP objtool_args += --uaccess endif +ifdef CONFIG_FTRACE_MCOUNT_USE_OBJTOOL + objtool_args += --mcount +endif # 'OBJECT_FILES_NON_STANDARD := y': skip objtool checking for a directory # 'OBJECT_FILES_NON_STANDARD_foo.o := 'y': skip objtool checking for a file |