Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

objtool/x86: Ignore __x86_indirect_alt_* symbols

Because the __x86_indirect_alt* symbols are just that, objtool will
try and validate them as regular symbols, instead of the alternative
replacements that they are.

This goes sideways for FRAME_POINTER=y builds; which generate a fair
amount of warnings.

Fixes: 9bc0bb50727c ("objtool/x86: Rewrite retpoline thunk calls")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/YNCgxwLBiK9wclYJ@hirez.programming.kicks-ass.net

authored by

Peter Zijlstra and committed by
Ingo Molnar
31197d3a 13311e74

+4
+4
arch/x86/lib/retpoline.S
··· 58 58 2: .skip 5-(2b-1b), 0x90 59 59 SYM_FUNC_END(__x86_indirect_alt_call_\reg) 60 60 61 + STACK_FRAME_NON_STANDARD(__x86_indirect_alt_call_\reg) 62 + 61 63 SYM_FUNC_START_NOALIGN(__x86_indirect_alt_jmp_\reg) 62 64 ANNOTATE_RETPOLINE_SAFE 63 65 1: jmp *%\reg 64 66 2: .skip 5-(2b-1b), 0x90 65 67 SYM_FUNC_END(__x86_indirect_alt_jmp_\reg) 68 + 69 + STACK_FRAME_NON_STANDARD(__x86_indirect_alt_jmp_\reg) 66 70 67 71 .endm 68 72