]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
objtool: Add is_static_jump() helper
authorJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 10 Feb 2020 18:32:39 +0000 (12:32 -0600)
committerBorislav Petkov <bp@suse.de>
Tue, 11 Feb 2020 12:36:01 +0000 (13:36 +0100)
commita22961409c02b93ffa7ed78f67fb57a1ba6c787d
treeaf0f2971d5aacf5416cfa9ed167d0f9eadcb70ae
parent644592d328370af4b3e027b7b1ae9f81613782d8
objtool: Add is_static_jump() helper

There are several places where objtool tests for a non-dynamic (aka
direct) jump.  Move the check to a helper function.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Julien Thierry <jthierry@redhat.com>
Link: https://lkml.kernel.org/r/9b8b438df918276315e4765c60d2587f3c7ad698.1581359535.git.jpoimboe@redhat.com
tools/objtool/check.c