Commit 92b0a141 authored by Kees Cook's avatar Kees Cook Committed by Ingo Molnar

objtool: Add fortify_panic as __noreturn function

CONFIG_FORTIFY_SOURCE=y implements fortify_panic() as a __noreturn function,
so objtool needs to know about it too.
Suggested-by: default avatarDaniel Micay <danielmicay@gmail.com>
Tested-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1497532835-32704-1-git-send-email-jpoimboe@redhat.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 63f700aa
...@@ -192,7 +192,8 @@ static int __dead_end_function(struct objtool_file *file, struct symbol *func, ...@@ -192,7 +192,8 @@ static int __dead_end_function(struct objtool_file *file, struct symbol *func,
"complete_and_exit", "complete_and_exit",
"kvm_spurious_fault", "kvm_spurious_fault",
"__reiserfs_panic", "__reiserfs_panic",
"lbug_with_loc" "lbug_with_loc",
"fortify_panic",
}; };
if (func->bind == STB_WEAK) if (func->bind == STB_WEAK)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment