]> git.baikalelectronics.ru Git - kernel.git/commit
objtool: Fail the kernel build on fatal errors
authorJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 10 Feb 2020 18:32:38 +0000 (12:32 -0600)
committerBorislav Petkov <bp@suse.de>
Tue, 11 Feb 2020 12:27:03 +0000 (13:27 +0100)
commitda4648b11431dd362d066f8d923bc7d12b824f1c
tree2dbf2792277d72d59912f8d51d134b1522d374ce
parent9f9285b96014e47599924b03ab0c07fa1549e04b
objtool: Fail the kernel build on fatal errors

When objtool encounters a fatal error, it usually means the binary is
corrupt or otherwise broken in some way.  Up until now, such errors were
just treated as warnings which didn't fail the kernel build.

However, objtool is now stable enough that if a fatal error is
discovered, it most likely means something is seriously wrong and it
should fail the kernel build.

Note that this doesn't apply to "normal" objtool warnings; only fatal
ones.

Suggested-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Julien Thierry <jthierry@redhat.com>
Link: https://lkml.kernel.org/r/f18c3743de0fef673d49dd35760f26bdef7f6fc3.1581359535.git.jpoimboe@redhat.com
tools/objtool/check.c