WSL2-Linux-Kernel/tools/objtool
Peter Zijlstra 5b06fd3bb9 static_call: Handle tail-calls
GCC can turn our static_call(name)(args...) into a tail call, in which
case we get a JMP.d32 into the trampoline (which then does a further
tail-call).

Teach objtool to recognise and mark these in .static_call_sites and
adjust the code patching to deal with this.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20200818135805.101186767@infradead.org
2020-09-01 09:58:06 +02:00
..
Documentation
arch/x86 Merge branch 'objtool/urgent' into objtool/core 2020-06-18 17:55:29 +02:00
.gitignore
Build objtool: Enable compilation of objtool for all architectures 2020-05-20 09:17:28 -05:00
Makefile objtool: Enable compilation of objtool for all architectures 2020-05-20 09:17:28 -05:00
arch.h Merge branch 'objtool/urgent' into objtool/core 2020-06-18 17:55:29 +02:00
builtin-check.c objtool: Enable compilation of objtool for all architectures 2020-05-20 09:17:28 -05:00
builtin-orc.c objtool: Enable compilation of objtool for all architectures 2020-05-20 09:17:28 -05:00
builtin.h
cfi.h
check.c static_call: Handle tail-calls 2020-09-01 09:58:06 +02:00
check.h x86/static_call: Add inline static call implementation for x86-64 2020-09-01 09:58:05 +02:00
elf.c x86/static_call: Add inline static call implementation for x86-64 2020-09-01 09:58:05 +02:00
elf.h x86/static_call: Add inline static call implementation for x86-64 2020-09-01 09:58:05 +02:00
objtool.c objtool: Exit successfully when requesting help 2020-05-20 08:32:52 -05:00
objtool.h x86/static_call: Add inline static call implementation for x86-64 2020-09-01 09:58:05 +02:00
orc_dump.c objtool: Enable compilation of objtool for all architectures 2020-05-20 09:17:28 -05:00
orc_gen.c x86/static_call: Add inline static call implementation for x86-64 2020-09-01 09:58:05 +02:00
special.c objtool: Rename rela to reloc 2020-06-01 09:40:58 -05:00
special.h
sync-check.sh x86/static_call: Add inline static call implementation for x86-64 2020-09-01 09:58:05 +02:00
warn.h
weak.c objtool: Enable compilation of objtool for all architectures 2020-05-20 09:17:28 -05:00