]> git.baikalelectronics.ru Git - kernel.git/commit
objtool: Fix function fallthrough detection for vmlinux
authorJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 11 Apr 2022 23:10:32 +0000 (16:10 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 19 Apr 2022 19:58:53 +0000 (21:58 +0200)
commitb48b6ae7a2228723d008c8bca3c56197dc639c53
tree3c355ae742cfb28819da47258a120d930ced05ba
parentdc804b64833e76e60f9f2f2a0429196a7ca01ab5
objtool: Fix function fallthrough detection for vmlinux

Objtool's function fallthrough detection only works on C objects.
The distinction between C and assembly objects no longer makes sense
with objtool running on vmlinux.o.

Now that copy_user_64.S has been fixed up, and an objtool sibling call
detection bug has been fixed, the asm code is in "compliance" and this
hack is no longer needed.  Remove it.

Fixes: 41b9bc8a5fee ("x86/alternative: Use .ibt_endbr_seal to seal indirect calls")
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/b434cff98eca3a60dcc64c620d7d5d405a0f441c.1649718562.git.jpoimboe@redhat.com
tools/objtool/check.c
tools/objtool/include/objtool/objtool.h
tools/objtool/objtool.c