linux-stable/tools/objtool
Julien Thierry 472f87598a objtool: Ignore empty alternatives
[ Upstream commit 7170cf47d1 ]

The .alternatives section can contain entries with no original
instructions. Objtool will currently crash when handling such an entry.

Just skip that entry, but still give a warning to discourage useless
entries.

Signed-off-by: Julien Thierry <jthierry@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-20 10:25:07 +02:00
..
Documentation
arch/x86 x86/decoder: Add TEST opcode to Group3-2 2020-02-28 16:36:06 +01:00
.gitignore objtool: Move synced files to their original relative locations 2017-12-29 17:53:41 +01:00
Build
Makefile objtool: Clobber user CFLAGS variable 2019-10-05 12:47:35 +02:00
arch.h
builtin-check.c objtool: Add module specific retpoline rules 2018-03-15 10:54:38 +01:00
builtin-orc.c objtool: Use existing global variables for options 2018-03-15 10:54:37 +01:00
builtin.h objtool: Add module specific retpoline rules 2018-03-15 10:54:38 +01:00
cfi.h
check.c objtool: Ignore empty alternatives 2020-06-20 10:25:07 +02:00
check.h objtool: Support per-function rodata sections 2019-06-25 11:36:50 +08:00
elf.c objtool: Support GCC 9 cold subfunction naming scheme 2019-08-06 19:05:28 +02:00
elf.h objtool: Support per-function rodata sections 2019-06-25 11:36:50 +08:00
objtool.c
orc.h objtool: Move synced files to their original relative locations 2017-12-29 17:53:41 +01:00
orc_dump.c objtool: Support Clang non-section symbols in ORC dump 2020-05-02 17:24:44 +02:00
orc_gen.c objtool: Warn on stripped section symbol 2018-02-07 11:12:21 -08:00
special.c
special.h
sync-check.sh objtool: Move kernel headers/code sync check to a script 2017-12-29 17:53:42 +01:00
warn.h