linux-sg2042/tools/objtool
Peter Zijlstra e7c0219b32 objtool: Fix !CFI insn_state propagation
Objtool keeps per instruction CFI state in struct insn_state and will
save/restore this where required. However, insn_state has grown some
!CFI state, and this must not be saved/restored (that would
loose/destroy state).

Fix this by moving the CFI specific parts of insn_state into struct
cfi_state.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lkml.kernel.org/r/20200416115119.045821071@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2020-04-22 10:53:50 +02:00
..
Documentation objtool: Documentation: document UACCESS warnings 2020-04-22 10:53:49 +02:00
arch/x86 objtool: Rename struct cfi_state 2020-04-22 10:53:50 +02:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Build objtool: Optimize find_symbol_*() and read_symbols() 2020-03-25 18:28:29 +01:00
Makefile objtool: Split out arch-specific CFI definitions 2020-04-22 10:53:49 +02:00
arch.h objtool: Rename struct cfi_state 2020-04-22 10:53:50 +02:00
builtin-check.c objtool: Add a statistics mode 2020-03-25 18:28:28 +01:00
builtin-orc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
builtin.h objtool: Add a statistics mode 2020-03-25 18:28:28 +01:00
cfi.h objtool: Fix !CFI insn_state propagation 2020-04-22 10:53:50 +02:00
check.c objtool: Fix !CFI insn_state propagation 2020-04-22 10:53:50 +02:00
check.h objtool: Fix !CFI insn_state propagation 2020-04-22 10:53:50 +02:00
elf.c objtool: Fix off-by-one in symbol_by_offset() 2020-04-22 10:53:49 +02:00
elf.h objtool: Fix 32bit cross builds 2020-04-22 10:53:49 +02:00
objtool.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
orc.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
orc_dump.c objtool: Support Clang non-section symbols in ORC dump 2020-04-14 11:59:52 +02:00
orc_gen.c objtool: Fix !CFI insn_state propagation 2020-04-22 10:53:50 +02:00
special.c objtool: Optimize read_sections() 2020-03-25 18:28:30 +01:00
special.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
sync-check.sh objtool: Silence build output 2020-01-22 07:54:34 +01:00
warn.h objtool: Rename find_containing_func() 2020-03-25 18:28:29 +01:00