]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
objtool: Ignore unreachable fake jumps
authorJulien Thierry <jthierry@redhat.com>
Tue, 15 Sep 2020 07:53:17 +0000 (08:53 +0100)
committerJosh Poimboeuf <jpoimboe@redhat.com>
Fri, 18 Sep 2020 17:04:00 +0000 (12:04 -0500)
commitfb136219f0e2b417d84e67b2a3adc1f933997d04
treedd116fdecbb246823a8e808069882416b0b0a242
parentf4f803984c3685f416a74e9e2fa7d39bdafbe02b
objtool: Ignore unreachable fake jumps

It is possible for alternative code to unconditionally jump out of the
alternative region. In such a case, if a fake jump is added at the end
of the alternative instructions, the fake jump will never be reached.
Since the fake jump is just a mean to make sure code validation does not
go beyond the set of alternatives, reaching it is not a requirement.

Signed-off-by: Julien Thierry <jthierry@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
tools/objtool/check.c