Makefile (c44264f9f729fd63bd6a81a6ac5cd6cd49af09e5) | Makefile (e544ea57ac0734bca752eb2d8635fecbe932c356) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# 3# The stub may be linked into the kernel proper or into a separate boot binary, 4# but in either case, it executes before the kernel does (with MMU disabled) so 5# things like ftrace and stack-protector are likely to cause trouble if left 6# enabled, even if doing so doesn't break the build. 7# 8cflags-$(CONFIG_X86_32) := -march=i386 --- 12 unchanged lines hidden (view full) --- 21 -fpie $(DISABLE_STACKLEAK_PLUGIN) 22cflags-$(CONFIG_ARM) := $(subst $(CC_FLAGS_FTRACE),,$(KBUILD_CFLAGS)) \ 23 -fno-builtin -fpic \ 24 $(call cc-option,-mno-single-pic-base) 25 26cflags-$(CONFIG_EFI_GENERIC_STUB) += -I$(srctree)/scripts/dtc/libfdt 27 28KBUILD_CFLAGS := $(cflags-y) -Os -DDISABLE_BRANCH_PROFILING \ | 1# SPDX-License-Identifier: GPL-2.0 2# 3# The stub may be linked into the kernel proper or into a separate boot binary, 4# but in either case, it executes before the kernel does (with MMU disabled) so 5# things like ftrace and stack-protector are likely to cause trouble if left 6# enabled, even if doing so doesn't break the build. 7# 8cflags-$(CONFIG_X86_32) := -march=i386 --- 12 unchanged lines hidden (view full) --- 21 -fpie $(DISABLE_STACKLEAK_PLUGIN) 22cflags-$(CONFIG_ARM) := $(subst $(CC_FLAGS_FTRACE),,$(KBUILD_CFLAGS)) \ 23 -fno-builtin -fpic \ 24 $(call cc-option,-mno-single-pic-base) 25 26cflags-$(CONFIG_EFI_GENERIC_STUB) += -I$(srctree)/scripts/dtc/libfdt 27 28KBUILD_CFLAGS := $(cflags-y) -Os -DDISABLE_BRANCH_PROFILING \ |
29 -include $(srctree)/drivers/firmware/efi/libstub/hidden.h \ | 29 -include $(srctree)/include/linux/hidden.h \ |
30 -D__NO_FORTIFY \ | 30 -D__NO_FORTIFY \ |
31 $(call cc-option,-ffreestanding) \ 32 $(call cc-option,-fno-stack-protector) \ | 31 -ffreestanding \ 32 -fno-stack-protector \ |
33 $(call cc-option,-fno-addrsig) \ 34 -D__DISABLE_EXPORTS 35 36# remove SCS flags from all objects in this directory 37KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_SCS), $(KBUILD_CFLAGS)) 38 39GCOV_PROFILE := n 40# Sanitizer runtimes are unavailable and cannot be linked here. --- 85 unchanged lines hidden --- | 33 $(call cc-option,-fno-addrsig) \ 34 -D__DISABLE_EXPORTS 35 36# remove SCS flags from all objects in this directory 37KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_SCS), $(KBUILD_CFLAGS)) 38 39GCOV_PROFILE := n 40# Sanitizer runtimes are unavailable and cannot be linked here. --- 85 unchanged lines hidden --- |