objtool,x86: Replace alternatives with .retpoline_sites
Instead of writing complete alternatives, simply provide a list of all the retpoline thunk calls. Then the kernel is free to do with them as it pleases. Simpler code all-round. Signed-off-by:Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by:
Borislav Petkov <bp@suse.de> Acked-by:
Josh Poimboeuf <jpoimboe@redhat.com> Tested-by:
Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/r/20211026120309.850007165@infradead.org
Showing
- arch/x86/kernel/vmlinux.lds.S 14 additions, 0 deletionsarch/x86/kernel/vmlinux.lds.S
- tools/objtool/arch/x86/decode.c 0 additions, 120 deletionstools/objtool/arch/x86/decode.c
- tools/objtool/check.c 93 additions, 39 deletionstools/objtool/check.c
- tools/objtool/elf.c 0 additions, 84 deletionstools/objtool/elf.c
- tools/objtool/include/objtool/elf.h 0 additions, 1 deletiontools/objtool/include/objtool/elf.h
- tools/objtool/special.c 0 additions, 8 deletionstools/objtool/special.c
Loading