hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/powerpc/purgatory/Makefile
....@@ -4,6 +4,11 @@
44
55 targets += trampoline_$(BITS).o purgatory.ro kexec-purgatory.c
66
7
+# When profile-guided optimization is enabled, llvm emits two different
8
+# overlapping text sections, which is not supported by kexec. Remove profile
9
+# optimization flags.
10
+KBUILD_CFLAGS := $(filter-out -fprofile-sample-use=% -fprofile-use=%,$(KBUILD_CFLAGS))
11
+
712 LDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined
813
914 $(obj)/purgatory.ro: $(obj)/trampoline_$(BITS).o FORCE