objtool: Add abstraction for destination offsets
authorRaphael Gault <raphael.gault@arm.com>
Fri, 27 Mar 2020 15:28:45 +0000 (15:28 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 22 Apr 2020 08:53:49 +0000 (10:53 +0200)
commitbfb08f220312a4634532114eb3e7062f17dfb707
tree4453926dd61754ee451d2139cecd07b3e52d9abb
parentaff5e16918c3706622b138ea82391d6c597c5660
objtool: Add abstraction for destination offsets

The jump and call destination relocation offsets are x86-specific.
Abstract them by calling arch-specific implementations.

[ jthierry: Remove superfluous comment; replace other addend offsets
           with arch_dest_rela_offset() ]

Signed-off-by: Raphael Gault <raphael.gault@arm.com>
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>
tools/objtool/arch.h
tools/objtool/arch/x86/decode.c
tools/objtool/check.c