Skip to content

RFC objtool: Optimize !retpoline

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6objtool: Correctly handle retpoline thunk callstools/objtool/check.c+12 -00 replies
2/6objtool: Fix static_call list generationtools/objtool/check.c+12 -50 replies
3/6objtool: Rework rebuild_reloc logictools/objtool/check.c tools/objtool/elf.c tools/objtool/include/objtool/elf.h +1 more+13 -80 replies
4/6objtool: Add elf_create_undef_symbol()tools/objtool/elf.c tools/objtool/include/objtool/elf.h+139 -420 replies
5/6objtool: Allow archs to rewrite retpolinestools/objtool/check.c tools/objtool/include/objtool/arch.h+24 -20 replies
6/6objtool,x86: Rewrite retpoline thunk callsarch/x86/lib/retpoline.S tools/objtool/arch/x86/decode.c+230 -111 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC][PATCH 0/6] objtool: Optimize !retpoline

Hi,

Here's a few patches that go on top of the previously posted series:

https://lkml.kernel.org/r/[email protected]
https://lkml.kernel.org/r/[email protected]

and can also be found, in full, here:

git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git objtool/wip

The purpose is to replace every compiler generated (tail) call to the retpoline thunks with an alternative, one that avoids the thunk when retpolines are disabled.

Very lightly tested...