]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Build thunk_$(BITS) only if CONFIG_PREEMPTION=y
authorAndrea Righi <andrea.righi@canonical.com>
Thu, 14 Jul 2022 07:49:15 +0000 (09:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:15 +0000 (14:24 +0200)
commit29ff69143f70c147aef1036ce6d4cbfdd1018d7c
tree3127ea1f089b8bab5725c879ff8165089dbef697
parent2c04175fcfa4639ef33ea67707dfdebce377e5c8
x86/entry: Build thunk_$(BITS) only if CONFIG_PREEMPTION=y

[ Upstream commit cc7eda63f96121aa5d7158c2517b20040c9963b6 ]

With CONFIG_PREEMPTION disabled, arch/x86/entry/thunk_$(BITS).o becomes
an empty object file.

With some old versions of binutils (i.e., 2.35.90.20210113-1ubuntu1) the
GNU assembler doesn't generate a symbol table for empty object files and
objtool fails with the following error when a valid symbol table cannot
be found:

  arch/x86/entry/thunk_64.o: warning: objtool: missing symbol table

To prevent this from happening, build thunk_$(BITS).o only if
CONFIG_PREEMPTION is enabled.

BugLink: https://bugs.launchpad.net/bugs/1911359
Fixes: 116d2e7cf800 ("x86/entry: Remove the TRACE_IRQS cruft")
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/Ys/Ke7EWjcX+ZlXO@arighi-desktop
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/entry/Makefile
arch/x86/entry/thunk_32.S
arch/x86/entry/thunk_64.S
arch/x86/um/Makefile