Merge tag 'x86-urgent-2025-01-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fix from Ingo Molnar: "Fix a potential early boot crash in SEV-SNP guests, where certain config and build environment combinations can generate absolute references to symbols in the early boot code" * tag 'x86-urgent-2025-01-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/sev: Disable jump tables in SEV startup code
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
obj-y += core.o
|
||||
|
||||
# jump tables are emitted using absolute references in non-PIC code
|
||||
# so they cannot be used in the early SEV startup code
|
||||
CFLAGS_core.o += -fno-jump-tables
|
||||
|
||||
ifdef CONFIG_FUNCTION_TRACER
|
||||
CFLAGS_REMOVE_core.o = -pg
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user