Makefile (78c2141b654375079e3737f06f19cabfc0fcecd7) | Makefile (893ab00439a45513cae55781fc8e3b7108ee1cda) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2OBJECT_FILES_NON_STANDARD := y 3 4purgatory-y := purgatory.o stack.o setup-x86_$(BITS).o sha256.o entry64.o string.o 5 6targets += $(purgatory-y) 7PURGATORY_OBJS = $(addprefix $(obj)/,$(purgatory-y)) 8 --- 20 unchanged lines hidden (view full) --- 29KCOV_INSTRUMENT := n 30 31# These are adjustments to the compiler flags used for objects that 32# make up the standalone purgatory.ro 33 34PURGATORY_CFLAGS_REMOVE := -mcmodel=kernel 35PURGATORY_CFLAGS := -mcmodel=large -ffreestanding -fno-zero-initialized-in-bss 36PURGATORY_CFLAGS += $(DISABLE_STACKLEAK_PLUGIN) -DDISABLE_BRANCH_PROFILING | 1# SPDX-License-Identifier: GPL-2.0 2OBJECT_FILES_NON_STANDARD := y 3 4purgatory-y := purgatory.o stack.o setup-x86_$(BITS).o sha256.o entry64.o string.o 5 6targets += $(purgatory-y) 7PURGATORY_OBJS = $(addprefix $(obj)/,$(purgatory-y)) 8 --- 20 unchanged lines hidden (view full) --- 29KCOV_INSTRUMENT := n 30 31# These are adjustments to the compiler flags used for objects that 32# make up the standalone purgatory.ro 33 34PURGATORY_CFLAGS_REMOVE := -mcmodel=kernel 35PURGATORY_CFLAGS := -mcmodel=large -ffreestanding -fno-zero-initialized-in-bss 36PURGATORY_CFLAGS += $(DISABLE_STACKLEAK_PLUGIN) -DDISABLE_BRANCH_PROFILING |
37PURGATORY_CFLAGS += $(call cc-option,-fno-stack-protector) | 37PURGATORY_CFLAGS += -fno-stack-protector |
38 39# Default KBUILD_CFLAGS can have -pg option set when FTRACE is enabled. That 40# in turn leaves some undefined symbols like __fentry__ in purgatory and not 41# sure how to relocate those. 42ifdef CONFIG_FUNCTION_TRACER 43PURGATORY_CFLAGS_REMOVE += $(CC_FLAGS_FTRACE) 44endif 45 --- 36 unchanged lines hidden --- | 38 39# Default KBUILD_CFLAGS can have -pg option set when FTRACE is enabled. That 40# in turn leaves some undefined symbols like __fentry__ in purgatory and not 41# sure how to relocate those. 42ifdef CONFIG_FUNCTION_TRACER 43PURGATORY_CFLAGS_REMOVE += $(CC_FLAGS_FTRACE) 44endif 45 --- 36 unchanged lines hidden --- |