mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 07:31:29 +00:00
c4e7895725
When CONFIG_EXPOLINE_EXTERN is used expoline thunks are generated
from arch/s390/lib/expoline.S and postlinked into every module.
This is also true for external modules. Add expoline.o build to
the modules_prepare target.
Fixes: 1d2ad08480
("s390/nospec: add an option to use thunk-extern")
Reported-by: Joe Lawrence <joe.lawrence@redhat.com>
Tested-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Tested-by: C. Erastus Toe <ctoe@redhat.com>
Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
Link: https://lore.kernel.org/r/patch-1.thread-d13b6c.git-a2387a74dc49.your-ad-here.call-01656331067-ext-4899@work.hours
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
26 lines
821 B
Makefile
26 lines
821 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for s390-specific library files..
|
|
#
|
|
|
|
lib-y += delay.o string.o uaccess.o find.o spinlock.o
|
|
obj-y += mem.o xor.o
|
|
lib-$(CONFIG_KPROBES) += probes.o
|
|
lib-$(CONFIG_UPROBES) += probes.o
|
|
obj-$(CONFIG_S390_KPROBES_SANITY_TEST) += test_kprobes_s390.o
|
|
test_kprobes_s390-objs += test_kprobes_asm.o test_kprobes.o
|
|
|
|
# Instrumenting memory accesses to __user data (in different address space)
|
|
# produce false positives
|
|
KASAN_SANITIZE_uaccess.o := n
|
|
|
|
obj-$(CONFIG_S390_UNWIND_SELFTEST) += test_unwind.o
|
|
CFLAGS_test_unwind.o += -fno-optimize-sibling-calls
|
|
|
|
obj-$(CONFIG_S390_MODULES_SANITY_TEST) += test_modules.o
|
|
obj-$(CONFIG_S390_MODULES_SANITY_TEST_HELPERS) += test_modules_helpers.o
|
|
|
|
lib-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o
|
|
|
|
obj-$(CONFIG_EXPOLINE_EXTERN) += expoline/
|