linux/arch/x86/entry
Andrea Righi a9943942a5 x86/entry: Build thunk_$(BITS) only if CONFIG_PREEMPTION=y
[ Upstream commit de979c8357 ]

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: 320100a5ff ("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>
2022-08-21 15:16:13 +02:00
..
syscalls
vdso x86: link vdso and boot with -z noexecstack --no-warn-rwx-segments 2022-08-21 15:15:18 +02:00
vsyscall x86/vsyscall_emu/64: Don't use RET in vsyscall emulation 2022-07-25 11:26:38 +02:00
calling.h x86/retbleed: Add fine grained Kconfig knobs 2022-07-25 11:26:50 +02:00
common.c x86/entry: Fix noinstr fail in __do_fast_syscall_32() 2021-06-30 08:47:17 -04:00
entry_32.S x86/speculation: Fix RSB filling with CONFIG_RETPOLINE=n 2022-07-25 11:26:46 +02:00
entry_64_compat.S objtool: Add entry UNRET validation 2022-07-25 11:26:45 +02:00
entry_64.S x86/speculation: Fix RSB filling with CONFIG_RETPOLINE=n 2022-07-25 11:26:46 +02:00
entry.S x86/bugs: Add retbleed=ibpb 2022-07-25 11:26:44 +02:00
Makefile x86/entry: Build thunk_$(BITS) only if CONFIG_PREEMPTION=y 2022-08-21 15:16:13 +02:00
syscall_32.c
syscall_64.c
syscall_x32.c
thunk_32.S x86/entry: Build thunk_$(BITS) only if CONFIG_PREEMPTION=y 2022-08-21 15:16:13 +02:00
thunk_64.S x86/entry: Build thunk_$(BITS) only if CONFIG_PREEMPTION=y 2022-08-21 15:16:13 +02:00