Skip to content

Commit 3bbbe97

Browse files
committed
x86/srso: Add a forgotten NOENDBR annotation
Fix: vmlinux.o: warning: objtool: .export_symbol+0x29e40: data relocation to !ENDBR: srso_untrain_ret_alias+0x0 Reported-by: Linus Torvalds <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]>
1 parent 238ec85 commit 3bbbe97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/lib/retpoline.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ SYM_CODE_END(__x86_indirect_jump_thunk_array)
151151
.section .text.__x86.rethunk_untrain
152152

153153
SYM_START(srso_untrain_ret_alias, SYM_L_GLOBAL, SYM_A_NONE)
154+
ANNOTATE_NOENDBR
154155
ASM_NOP2
155156
lfence
156157
jmp __x86_return_thunk

0 commit comments

Comments
 (0)