1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 21cd9c22fSKirill A. Shutemov# Kernel does not boot with instrumentation of tlb.c and mem_encrypt*.c 35c9a8750SDmitry VyukovKCOV_INSTRUMENT_tlb.o := n 467bb8e99STom LendackyKCOV_INSTRUMENT_mem_encrypt.o := n 51cd9c22fSKirill A. ShutemovKCOV_INSTRUMENT_mem_encrypt_identity.o := n 667bb8e99STom Lendacky 767bb8e99STom LendackyKASAN_SANITIZE_mem_encrypt.o := n 81cd9c22fSKirill A. ShutemovKASAN_SANITIZE_mem_encrypt_identity.o := n 967bb8e99STom Lendacky 1040d04110SMarco Elver# Disable KCSAN entirely, because otherwise we get warnings that some functions 1140d04110SMarco Elver# reference __initdata sections. 1240d04110SMarco ElverKCSAN_SANITIZE := n 1340d04110SMarco Elver 1467bb8e99STom Lendackyifdef CONFIG_FUNCTION_TRACER 1567bb8e99STom LendackyCFLAGS_REMOVE_mem_encrypt.o = -pg 161cd9c22fSKirill A. ShutemovCFLAGS_REMOVE_mem_encrypt_identity.o = -pg 1767bb8e99STom Lendackyendif 185c9a8750SDmitry Vyukov 19f9b57cf8SIngo Molnarobj-y := init.o init_$(BITS).o fault.o ioremap.o extable.o mmap.o \ 20f9b57cf8SIngo Molnar pgtable.o physaddr.o setup_nx.o tlb.o cpu_entry_area.o maccess.o 21f9b57cf8SIngo Molnar 22f9b57cf8SIngo Molnarobj-y += pat/ 232596e0faSH. Peter Anvin 24577eebeaSJeremy Fitzhardinge# Make sure __phys_addr has no stackprotector 25*893ab004SMasahiro YamadaCFLAGS_physaddr.o := -fno-stack-protector 26*893ab004SMasahiro YamadaCFLAGS_setup_nx.o := -fno-stack-protector 27*893ab004SMasahiro YamadaCFLAGS_mem_encrypt_identity.o := -fno-stack-protector 28577eebeaSJeremy Fitzhardinge 299cc342f6SMasahiro YamadaCFLAGS_fault.o := -I $(srctree)/$(src)/../include/asm/trace 30d34603b0SSeiji Aguchi 31fd940934SKeith Packardobj-$(CONFIG_X86_32) += pgtable_32.o iomap_32.o 322596e0faSH. Peter Anvin 332596e0faSH. Peter Anvinobj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o 342ae27137SSteven Priceobj-$(CONFIG_PTDUMP_CORE) += dump_pagetables.o 352ae27137SSteven Priceobj-$(CONFIG_PTDUMP_DEBUGFS) += debug_pagetables.o 362596e0faSH. Peter Anvin 372596e0faSH. Peter Anvinobj-$(CONFIG_HIGHMEM) += highmem_32.o 382596e0faSH. Peter Anvin 39ef7f0d6aSAndrey RyabininKASAN_SANITIZE_kasan_init_$(BITS).o := n 40ef7f0d6aSAndrey Ryabininobj-$(CONFIG_KASAN) += kasan_init_$(BITS).o 41ef7f0d6aSAndrey Ryabinin 42ff3a3e9bSPekka Paalanenobj-$(CONFIG_MMIOTRACE) += mmiotrace.o 43fd3fdf11SPekka Paalanenmmiotrace-y := kmmio.o pf_in.o mmio-mod.o 44ff3a3e9bSPekka Paalanenobj-$(CONFIG_MMIOTRACE_TEST) += testmmiotrace.o 45ff3a3e9bSPekka Paalanen 4671ee73e7SRusty Russellobj-$(CONFIG_NUMA) += numa.o numa_$(BITS).o 47c6f58878STejun Heoobj-$(CONFIG_AMD_NUMA) += amdtopology.o 485acd91abSTejun Heoobj-$(CONFIG_ACPI_NUMA) += srat.o 49b8ef9172STejun Heoobj-$(CONFIG_NUMA_EMU) += numa_emulation.o 506247943dSYinghai Lu 5162b5f7d0SDave Hansenobj-$(CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS) += pkeys.o 520483e1faSThomas Garnierobj-$(CONFIG_RANDOMIZE_MEMORY) += kaslr.o 53aa8c6248SThomas Gleixnerobj-$(CONFIG_PAGE_TABLE_ISOLATION) += pti.o 5462b5f7d0SDave Hansen 557744ccdbSTom Lendackyobj-$(CONFIG_AMD_MEM_ENCRYPT) += mem_encrypt.o 561cd9c22fSKirill A. Shutemovobj-$(CONFIG_AMD_MEM_ENCRYPT) += mem_encrypt_identity.o 576ebcb060STom Lendackyobj-$(CONFIG_AMD_MEM_ENCRYPT) += mem_encrypt_boot.o 58