]> www.infradead.org Git - users/dwmw2/linux.git/commit
objtool: Cache instruction relocs
authorPeter Zijlstra <peterz@infradead.org>
Fri, 26 Mar 2021 15:12:13 +0000 (16:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Jul 2022 09:26:17 +0000 (11:26 +0200)
commite87c18c4a951bba1d69c7acaf401d613cf9a828c
tree30347346012884b31cb29a67788f8e2de7938367
parent33092b486686c31432c5354dbb18651e44200668
objtool: Cache instruction relocs

commit 7bd2a600f3e9d27286bbf23c83d599e9cc7cf245 upstream.

Track the reloc of instructions in the new instruction->reloc field
to avoid having to look them up again later.

( Technically x86 instructions can have two relocations, but not jumps
  and calls, for which we're using this. )

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lkml.kernel.org/r/20210326151300.195441549@infradead.org
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/objtool/check.c
tools/objtool/check.h