]> git.baikalelectronics.ru Git - kernel.git/commit
objtool: Make noinstr hacks optional
authorJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 18 Apr 2022 16:50:40 +0000 (09:50 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 22 Apr 2022 10:32:04 +0000 (12:32 +0200)
commitec20904f0bffc7151f7da4c10ef0fbe626523fcd
tree8e1daad16f0f8f0975dd61917d21df8c252b6966
parentb75a037dddb842c63e61c3cc16a606ac32e2f698
objtool: Make noinstr hacks optional

Objtool has some hacks in place to workaround toolchain limitations
which otherwise would break no-instrumentation rules.  Make the hacks
explicit (and optional for other arches) by turning it into a cmdline
option and kernel config option.

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/b326eeb9c33231b9dfbb925f194ed7ee40edcd7c.1650300597.git.jpoimboe@redhat.com
arch/Kconfig
arch/x86/Kconfig
lib/Kconfig.debug
lib/Kconfig.kcsan
scripts/Makefile.build
scripts/link-vmlinux.sh
tools/objtool/builtin-check.c
tools/objtool/check.c
tools/objtool/include/objtool/builtin.h