]> git.baikalelectronics.ru Git - kernel.git/commit
objtool: Remove check preventing branches within alternative
authorJulien Thierry <jthierry@redhat.com>
Fri, 27 Mar 2020 15:28:42 +0000 (15:28 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 30 Apr 2020 18:14:31 +0000 (20:14 +0200)
commit8501e5b6e1a81fa65bc2b53f54fcdbf5b6f928ba
tree1a4ee6266ff4f2f579a6d9cfa69cc1ce4cfca5f1
parent50bc85b592d7f5fb288c033cfa751e113bea1ab0
objtool: Remove check preventing branches within alternative

While jumping from outside an alternative region to the middle of an
alternative region is very likely wrong, jumping from an alternative
region into the same region is valid. It is a common pattern on arm64.

The first pattern is unlikely to happen in practice and checking only
for this adds a lot of complexity.

Just remove the current check.

Suggested-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Julien Thierry <jthierry@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lkml.kernel.org/r/20200327152847.15294-6-jthierry@redhat.com
tools/objtool/check.c