diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2020-08-07 00:15:02 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2021-02-23 21:46:57 +0100 |
commit | 6dafca97803309c3cb5148d449bfa711e41ddef2 (patch) | |
tree | a1cf7fed79ecf2b3501444ff9cc6248c8f4b62ff /arch/x86/Kconfig | |
parent | tracing: add support for objtool mcount (diff) | |
download | linux-6dafca97803309c3cb5148d449bfa711e41ddef2.tar.xz linux-6dafca97803309c3cb5148d449bfa711e41ddef2.zip |
x86, build: use objtool mcount
Select HAVE_OBJTOOL_MCOUNT if STACK_VALIDATION is selected to use
objtool to generate __mcount_loc sections for dynamic ftrace with
Clang and gcc <5 (later versions of gcc use -mrecord-mcount).
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to '')
-rw-r--r-- | arch/x86/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 7b6dd10b162a..9cd9bd6562e3 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -167,6 +167,7 @@ config X86 select HAVE_CONTEXT_TRACKING if X86_64 select HAVE_CONTEXT_TRACKING_OFFSTACK if HAVE_CONTEXT_TRACKING select HAVE_C_RECORDMCOUNT + select HAVE_OBJTOOL_MCOUNT if STACK_VALIDATION select HAVE_DEBUG_KMEMLEAK select HAVE_DMA_CONTIGUOUS select HAVE_DYNAMIC_FTRACE |