1/* SPDX-License-Identifier: GPL-2.0 */ 2#include <linux/linkage.h> 3#include <linux/objtool.h> 4#include <asm/nospec-branch.h> 5 6SYM_CODE_START(ibt_selftest_noendbr) 7 ANNOTATE_NOENDBR 8 UNWIND_HINT_FUNC 9 /* #CP handler sets %ax to 0 */ 10 RET 11SYM_CODE_END(ibt_selftest_noendbr) 12 13SYM_FUNC_START(ibt_selftest) 14 lea ibt_selftest_noendbr(%rip), %rax 15 ANNOTATE_RETPOLINE_SAFE 16 jmp *%rax 17SYM_FUNC_END(ibt_selftest) 18