1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for s390-specific library files.. 4# 5 6CONTEXT_ANALYSIS := y 7 8# string.o implements standard library functions like memset/memcpy etc. 9# Use -ffreestanding to ensure that the compiler does not try to "optimize" 10# them into calls to themselves. 11CFLAGS_string.o = -ffreestanding 12 13lib-y += delay.o string.o uaccess.o find.o spinlock.o tishift.o 14lib-y += csum-partial.o 15lib-$(CONFIG_KPROBES) += probes.o 16lib-$(CONFIG_UPROBES) += probes.o 17obj-$(CONFIG_S390_KPROBES_SANITY_TEST) += test_kprobes_s390.o 18test_kprobes_s390-objs += test_kprobes_asm.o test_kprobes.o 19 20# Instrumenting memory accesses to __user data (in different address space) 21# produce false positives 22KASAN_SANITIZE_uaccess.o := n 23 24obj-$(CONFIG_S390_UNWIND_SELFTEST) += test_unwind.o 25CFLAGS_test_unwind.o += -fno-optimize-sibling-calls 26 27obj-$(CONFIG_S390_MODULES_SANITY_TEST) += test_modules.o 28obj-$(CONFIG_S390_MODULES_SANITY_TEST_HELPERS) += test_modules_helpers.o 29 30lib-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o 31 32obj-$(CONFIG_EXPOLINE_EXTERN) += expoline.o 33