WSL2-Linux-Kernel/arch/arm64
Denis Nikitin c773ebe11c KVM: arm64: nvhe: Fix build with profile optimization
commit bde971a83b upstream.

Kernel build with clang and KCFLAGS=-fprofile-sample-use=<profile> fails with:

error: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.tmp.o: Unexpected SHT_REL
section ".rel.llvm.call-graph-profile"

Starting from 13.0.0 llvm can generate SHT_REL section, see
https://reviews.llvm.org/rGca3bdb57fa1ac98b711a735de048c12b5fdd8086.
gen-hyprel does not support SHT_REL relocation section.

Filter out profile use flags to fix the build with profile optimization.

Signed-off-by: Denis Nikitin <denik@chromium.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221014184532.3153551-1-denik@chromium.org
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-18 11:48:47 +01:00
..
boot arm64: dts: qcom: sdm850-lenovo-yoga-c630: correct I2C12 pins drive strength 2023-01-12 11:58:51 +01:00
configs arm64: defconfig: build imx-sdma as a module 2022-04-08 14:24:00 +02:00
crypto crypto: arm64/gcm - Select AEAD for GHASH_ARM64_CE 2022-08-17 14:23:26 +02:00
hyperv
include KVM: arm64: Fix S1PTW handling on RO memslots 2023-01-18 11:48:47 +01:00
kernel arm64: Treat ESR_ELx as a 64-bit register 2022-12-31 13:13:58 +01:00
kvm KVM: arm64: nvhe: Fix build with profile optimization 2023-01-18 11:48:47 +01:00
lib arm64: mte: DC {GVA,GZVA} shouldn't be used when DCZID_EL0.DZP == 1 2022-01-27 11:03:28 +01:00
mm arm64: mm: kfence: only handle translation faults 2022-12-31 13:13:58 +01:00
net bpf, arm64: Use emit_addr_mov_i64() for BPF_PSEUDO_FUNC 2022-07-12 16:34:54 +02:00
tools arm64: errata: Remove AES hwcap for COMPAT tasks 2022-10-29 10:12:53 +02:00
xen
Kbuild
Kconfig arm64: errata: Remove AES hwcap for COMPAT tasks 2022-10-29 10:12:53 +02:00
Kconfig.debug
Kconfig.platforms irqchip/exiu: Fix acknowledgment of edge triggered interrupts 2022-06-09 10:22:54 +02:00
Makefile arm64 updates for 5.15: 2021-09-01 15:04:29 -07:00