.. | .. |
---|
1 | 1 | # SPDX-License-Identifier: GPL-2.0 |
---|
2 | | -targets += trampoline.o purgatory.ro kexec-purgatory.c |
---|
| 2 | + |
---|
| 3 | +KASAN_SANITIZE := n |
---|
| 4 | + |
---|
| 5 | +targets += trampoline_$(BITS).o purgatory.ro kexec-purgatory.c |
---|
| 6 | + |
---|
| 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)) |
---|
3 | 11 | |
---|
4 | 12 | LDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined |
---|
5 | 13 | |
---|
6 | | -$(obj)/purgatory.ro: $(obj)/trampoline.o FORCE |
---|
| 14 | +$(obj)/purgatory.ro: $(obj)/trampoline_$(BITS).o FORCE |
---|
7 | 15 | $(call if_changed,ld) |
---|
8 | 16 | |
---|
9 | 17 | quiet_cmd_bin2c = BIN2C $@ |
---|