aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@redhat.com>2022-04-18 09:50:33 -0700
committerPeter Zijlstra <peterz@infradead.org>2022-04-22 12:32:02 +0200
commit7dce62041ac34b613a5ed1bd937117e492e06dc8 (patch)
tree8c68d74e7cb605887ec35b63415235d5ab9464cf /scripts/Makefile.build
parentobjtool: Add option to print section addresses (diff)
downloadlinux-dev-7dce62041ac34b613a5ed1bd937117e492e06dc8.tar.xz
linux-dev-7dce62041ac34b613a5ed1bd937117e492e06dc8.zip
objtool: Make stack validation optional
Make stack validation an explicit cmdline option so that individual objtool features can be enabled individually by other arches. 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/52da143699574d756e65ca4c9d4acaffe9b0fe5f.1650300597.git.jpoimboe@redhat.com
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r--scripts/Makefile.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 116c7272b41c..d5e15ae29156 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -232,6 +232,7 @@ objtool_args = \
$(if $(CONFIG_UNWINDER_ORC), --orc) \
$(if $(CONFIG_RETPOLINE), --retpoline) \
$(if $(CONFIG_SLS), --sls) \
+ $(if $(CONFIG_STACK_VALIDATION), --stackval) \
$(if $(CONFIG_X86_SMAP), --uaccess) \
$(if $(part-of-module), --module) \
$(if $(CONFIG_FRAME_POINTER),, --no-fp) \