mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
x86/alternatives: Move declarations of vmlinux.lds.S defined section symbols to <asm/alternative.h>
Move it from the middle of a .c file next to the similar declarations of __alt_instructions[] et al. Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Juergen Gross <jgross@suse.com> Cc: "H . Peter Anvin" <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20250411054105.2341982-49-mingo@kernel.org
This commit is contained in:
parent
db5c68c88c
commit
b1bb39185d
|
|
@ -82,6 +82,12 @@ struct alt_instr {
|
|||
|
||||
extern struct alt_instr __alt_instructions[], __alt_instructions_end[];
|
||||
|
||||
extern s32 __retpoline_sites[], __retpoline_sites_end[];
|
||||
extern s32 __return_sites[], __return_sites_end[];
|
||||
extern s32 __cfi_sites[], __cfi_sites_end[];
|
||||
extern s32 __ibt_endbr_seal[], __ibt_endbr_seal_end[];
|
||||
extern s32 __smp_locks[], __smp_locks_end[];
|
||||
|
||||
/*
|
||||
* Debug flag that can be tested to see whether alternative
|
||||
* instructions were patched in already:
|
||||
|
|
|
|||
|
|
@ -149,12 +149,6 @@ static void add_nop(u8 *buf, unsigned int len)
|
|||
*buf = INT3_INSN_OPCODE;
|
||||
}
|
||||
|
||||
extern s32 __retpoline_sites[], __retpoline_sites_end[];
|
||||
extern s32 __return_sites[], __return_sites_end[];
|
||||
extern s32 __cfi_sites[], __cfi_sites_end[];
|
||||
extern s32 __ibt_endbr_seal[], __ibt_endbr_seal_end[];
|
||||
extern s32 __smp_locks[], __smp_locks_end[];
|
||||
|
||||
/*
|
||||
* Matches NOP and NOPL, not any of the other possible NOPs.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user