objtool: Fix static_call list generation
authorPeter Zijlstra <peterz@infradead.org>
Fri, 26 Mar 2021 15:12:05 +0000 (16:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 13:04:02 +0000 (14:04 +0100)
commitf0bc12b8482684fe4d0e48b367ca4fcb8580e81a
treebe43481f4465276dbc00dad97d167d3ed5a0dbab
parentb36ab509e1817e60f73ce297494f0de1b7ed2c08
objtool: Fix static_call list generation

[ Upstream commit a958c4fea768d2c378c89032ab41d38da2a24422 ]

Currently, objtool generates tail call entries in add_jump_destination()
but waits until validate_branch() to generate the regular call entries.
Move these to add_call_destination() for consistency.

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/20210326151259.691529901@infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/objtool/check.c