Makefile (9c0e6a89b592f4c4e4d769dbc22d399ab0685159) | Makefile (9c6d6652e950fb34295f446676a811f6df5b8561) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# 3# linux/arch/arm/boot/compressed/Makefile 4# 5# create a compressed vmlinuz image from the original vmlinux 6# 7 8OBJS = --- 78 unchanged lines hidden (view full) --- 87CFLAGS_REMOVE_atags_to_fdt.o += -Wframe-larger-than=${CONFIG_FRAME_WARN} 88CFLAGS_atags_to_fdt.o += -Wframe-larger-than=1280 89OBJS += $(libfdt_objs) atags_to_fdt.o 90endif 91ifeq ($(CONFIG_USE_OF),y) 92OBJS += $(libfdt_objs) fdt_check_mem_start.o 93endif 94 | 1# SPDX-License-Identifier: GPL-2.0 2# 3# linux/arch/arm/boot/compressed/Makefile 4# 5# create a compressed vmlinuz image from the original vmlinux 6# 7 8OBJS = --- 78 unchanged lines hidden (view full) --- 87CFLAGS_REMOVE_atags_to_fdt.o += -Wframe-larger-than=${CONFIG_FRAME_WARN} 88CFLAGS_atags_to_fdt.o += -Wframe-larger-than=1280 89OBJS += $(libfdt_objs) atags_to_fdt.o 90endif 91ifeq ($(CONFIG_USE_OF),y) 92OBJS += $(libfdt_objs) fdt_check_mem_start.o 93endif 94 |
95# -fstack-protector-strong triggers protection checks in this code, 96# but it is being used too early to link to meaningful stack_chk logic. 97$(foreach o, $(libfdt_objs) atags_to_fdt.o fdt_check_mem_start.o, \ 98 $(eval CFLAGS_$(o) := -I $(srctree)/scripts/dtc/libfdt -fno-stack-protector)) 99 100OBJS += lib1funcs.o ashldi3.o bswapsdi2.o 101 |
|
95targets := vmlinux vmlinux.lds piggy_data piggy.o \ 96 head.o $(OBJS) 97 98KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING 99 100ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin \ | 102targets := vmlinux vmlinux.lds piggy_data piggy.o \ 103 head.o $(OBJS) 104 105KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING 106 107ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin \ |
101 -I$(srctree)/scripts/dtc/libfdt -fno-stack-protector \ | |
102 -I$(obj) $(DISABLE_ARM_SSP_PER_TASK_PLUGIN) 103ccflags-remove-$(CONFIG_FUNCTION_TRACER) += -pg 104asflags-y := -DZIMAGE 105 106# Supply kernel BSS size to the decompressor via a linker symbol. 107KBSS_SZ = $(shell echo $$(($$($(NM) $(obj)/../../../../vmlinux | \ 108 sed -n -e 's/^\([^ ]*\) [ABD] __bss_start$$/-0x\1/p' \ 109 -e 's/^\([^ ]*\) [ABD] __bss_stop$$/+0x\1/p') )) ) --- 11 unchanged lines hidden (view full) --- 121LDFLAGS_vmlinux += -X 122# Report orphan sections 123ifdef CONFIG_LD_ORPHAN_WARN 124LDFLAGS_vmlinux += --orphan-handling=warn 125endif 126# Next argument is a linker script 127LDFLAGS_vmlinux += -T 128 | 108 -I$(obj) $(DISABLE_ARM_SSP_PER_TASK_PLUGIN) 109ccflags-remove-$(CONFIG_FUNCTION_TRACER) += -pg 110asflags-y := -DZIMAGE 111 112# Supply kernel BSS size to the decompressor via a linker symbol. 113KBSS_SZ = $(shell echo $$(($$($(NM) $(obj)/../../../../vmlinux | \ 114 sed -n -e 's/^\([^ ]*\) [ABD] __bss_start$$/-0x\1/p' \ 115 -e 's/^\([^ ]*\) [ABD] __bss_stop$$/+0x\1/p') )) ) --- 11 unchanged lines hidden (view full) --- 127LDFLAGS_vmlinux += -X 128# Report orphan sections 129ifdef CONFIG_LD_ORPHAN_WARN 130LDFLAGS_vmlinux += --orphan-handling=warn 131endif 132# Next argument is a linker script 133LDFLAGS_vmlinux += -T 134 |
129OBJS += lib1funcs.o ashldi3.o bswapsdi2.o 130 | |
131# We need to prevent any GOTOFF relocs being used with references 132# to symbols in the .bss section since we cannot relocate them 133# independently from the rest at run time. This can be achieved by 134# ensuring that no private .bss symbols exist, as global symbols 135# always have a GOT entry which is what we need. 136# The .data section is already discarded by the linker script so no need 137# to bother about it here. 138check_for_bad_syms = \ --- 28 unchanged lines hidden --- | 135# We need to prevent any GOTOFF relocs being used with references 136# to symbols in the .bss section since we cannot relocate them 137# independently from the rest at run time. This can be achieved by 138# ensuring that no private .bss symbols exist, as global symbols 139# always have a GOT entry which is what we need. 140# The .data section is already discarded by the linker script so no need 141# to bother about it here. 142check_for_bad_syms = \ --- 28 unchanged lines hidden --- |