Commit 4d5d5664 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Linus Torvalds

x86: kallsyms: disable absolute percpu symbols on !SMP

scripts/kallsyms.c has a special --absolute-percpu command line option
which deals with the zero based per cpu offsets that are used when
building for SMP on x86_64.  This means that the option should only be
passed in that case, so add a Kconfig symbol with the correct predicate,
and use that instead.
Signed-off-by: default avatarArd Biesheuvel <>
Tested-by: default avatarGuenter Roeck <>
Reviewed-by: default avatarKees Cook <>
Tested-by: default avatarKees Cook <>
Acked-by: default avatarRusty Russell <>
Cc: Heiko Carstens <>
Cc: Michael Ellerman <>
Cc: Ingo Molnar <>
Cc: H. Peter Anvin <>
Cc: Benjamin Herrenschmidt <>
Cc: Michal Marek <>
Cc: Arnd Bergmann <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 6b8c69e4
......@@ -1420,6 +1420,10 @@ config KALLSYMS_ALL
Say N unless you really need all symbols.
default X86_64 && SMP
config PRINTK
default y
bool "Enable support for printk" if EXPERT
......@@ -86,7 +86,7 @@ kallsyms()
kallsymopt="${kallsymopt} --page-offset=$CONFIG_PAGE_OFFSET"
if [ -n "${CONFIG_X86_64}" ]; then
kallsymopt="${kallsymopt} --absolute-percpu"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment