Makefile (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) Makefile (1881b4d64700e54ab8706a43c1ad119c3ad653dc)
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 =

--- 93 unchanged lines hidden (view full) ---

102
103ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin \
104 -I$(srctree)/scripts/dtc/libfdt -fno-stack-protector \
105 -I$(obj) $(DISABLE_ARM_SSP_PER_TASK_PLUGIN)
106ccflags-remove-$(CONFIG_FUNCTION_TRACER) += -pg
107asflags-y := -DZIMAGE
108
109# Supply kernel BSS size to the decompressor via a linker symbol.
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 =

--- 93 unchanged lines hidden (view full) ---

102
103ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin \
104 -I$(srctree)/scripts/dtc/libfdt -fno-stack-protector \
105 -I$(obj) $(DISABLE_ARM_SSP_PER_TASK_PLUGIN)
106ccflags-remove-$(CONFIG_FUNCTION_TRACER) += -pg
107asflags-y := -DZIMAGE
108
109# Supply kernel BSS size to the decompressor via a linker symbol.
110KBSS_SZ = $(shell echo $$(($$($(NM) $(obj)/../../../../vmlinux | \
110KBSS_SZ = $(shell echo $$(($$($(NM) vmlinux | \
111 sed -n -e 's/^\([^ ]*\) [ABD] __bss_start$$/-0x\1/p' \
112 -e 's/^\([^ ]*\) [ABD] __bss_stop$$/+0x\1/p') )) )
113LDFLAGS_vmlinux = --defsym _kernel_bss_size=$(KBSS_SZ)
114# Supply ZRELADDR to the decompressor via a linker symbol.
115ifneq ($(CONFIG_AUTO_ZRELADDR),y)
116LDFLAGS_vmlinux += --defsym zreladdr=$(ZRELADDR)
117endif
118ifeq ($(CONFIG_CPU_ENDIAN_BE8),y)

--- 48 unchanged lines hidden ---
111 sed -n -e 's/^\([^ ]*\) [ABD] __bss_start$$/-0x\1/p' \
112 -e 's/^\([^ ]*\) [ABD] __bss_stop$$/+0x\1/p') )) )
113LDFLAGS_vmlinux = --defsym _kernel_bss_size=$(KBSS_SZ)
114# Supply ZRELADDR to the decompressor via a linker symbol.
115ifneq ($(CONFIG_AUTO_ZRELADDR),y)
116LDFLAGS_vmlinux += --defsym zreladdr=$(ZRELADDR)
117endif
118ifeq ($(CONFIG_CPU_ENDIAN_BE8),y)

--- 48 unchanged lines hidden ---