Makefile (8e4e4c2f53ffcb0ef746dc3b87ce1a57c5c94c7d) | Makefile (68c76ad4a9571a2b603665c85cf8229bcf04982a) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for Kernel-based Virtual Machine module, HYP/nVHE part 4# 5 6asflags-y := -D__KVM_NVHE_HYPERVISOR__ -D__DISABLE_EXPORTS 7 8# Tracepoint and MMIO logging symbols should not be visible at nVHE KVM as --- 82 unchanged lines hidden (view full) --- 91 92# Remove ftrace, Shadow Call Stack, and CFI CFLAGS. 93# This is equivalent to the 'notrace', '__noscs', and '__nocfi' annotations. 94KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_FTRACE) $(CC_FLAGS_SCS) $(CC_FLAGS_CFI), $(KBUILD_CFLAGS)) 95# Starting from 13.0.0 llvm emits SHT_REL section '.llvm.call-graph-profile' 96# when profile optimization is applied. gen-hyprel does not support SHT_REL and 97# causes a build failure. Remove profile optimization flags. 98KBUILD_CFLAGS := $(filter-out -fprofile-sample-use=% -fprofile-use=%, $(KBUILD_CFLAGS)) | 1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for Kernel-based Virtual Machine module, HYP/nVHE part 4# 5 6asflags-y := -D__KVM_NVHE_HYPERVISOR__ -D__DISABLE_EXPORTS 7 8# Tracepoint and MMIO logging symbols should not be visible at nVHE KVM as --- 82 unchanged lines hidden (view full) --- 91 92# Remove ftrace, Shadow Call Stack, and CFI CFLAGS. 93# This is equivalent to the 'notrace', '__noscs', and '__nocfi' annotations. 94KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_FTRACE) $(CC_FLAGS_SCS) $(CC_FLAGS_CFI), $(KBUILD_CFLAGS)) 95# Starting from 13.0.0 llvm emits SHT_REL section '.llvm.call-graph-profile' 96# when profile optimization is applied. gen-hyprel does not support SHT_REL and 97# causes a build failure. Remove profile optimization flags. 98KBUILD_CFLAGS := $(filter-out -fprofile-sample-use=% -fprofile-use=%, $(KBUILD_CFLAGS)) |
99KBUILD_CFLAGS += -fno-asynchronous-unwind-tables -fno-unwind-tables |
|
99 100# KVM nVHE code is run at a different exception code with a different map, so 101# compiler instrumentation that inserts callbacks or checks into the code may 102# cause crashes. Just disable it. 103GCOV_PROFILE := n 104KASAN_SANITIZE := n 105KCSAN_SANITIZE := n 106UBSAN_SANITIZE := n 107KCOV_INSTRUMENT := n 108 109# Skip objtool checking for this directory because nVHE code is compiled with 110# non-standard build rules. 111OBJECT_FILES_NON_STANDARD := y | 100 101# KVM nVHE code is run at a different exception code with a different map, so 102# compiler instrumentation that inserts callbacks or checks into the code may 103# cause crashes. Just disable it. 104GCOV_PROFILE := n 105KASAN_SANITIZE := n 106KCSAN_SANITIZE := n 107UBSAN_SANITIZE := n 108KCOV_INSTRUMENT := n 109 110# Skip objtool checking for this directory because nVHE code is compiled with 111# non-standard build rules. 112OBJECT_FILES_NON_STANDARD := y |