From 0580bce1312f75362662881c938192856167cf7e Mon Sep 17 00:00:00 2001 From: Vasily Gorbik Date: Wed, 16 May 2018 10:57:44 +0200 Subject: s390/decompressor: extend .bss check for early code Cover the decompressor code with no .bss usage compile time check. Reviewed-by: Heiko Carstens Signed-off-by: Vasily Gorbik Signed-off-by: Martin Schwidefsky --- arch/s390/boot/Makefile | 4 ++++ arch/s390/boot/compressed/Makefile | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'arch/s390/boot') diff --git a/arch/s390/boot/Makefile b/arch/s390/boot/Makefile index 70b50b41eda9..a1ca3b805c74 100644 --- a/arch/s390/boot/Makefile +++ b/arch/s390/boot/Makefile @@ -48,3 +48,7 @@ $(obj)/startup.a: $(OBJECTS) FORCE install: $(CONFIGURE) $(obj)/bzImage sh -x $(srctree)/$(obj)/install.sh $(KERNELRELEASE) $(obj)/bzImage \ System.map "$(INSTALL_PATH)" + +chkbss := $(OBJECTS) +chkbss-target := $(obj)/startup.a +include $(srctree)/arch/s390/scripts/Makefile.chkbss diff --git a/arch/s390/boot/compressed/Makefile b/arch/s390/boot/compressed/Makefile index 7cfca96b48ad..9665131b3cb2 100644 --- a/arch/s390/boot/compressed/Makefile +++ b/arch/s390/boot/compressed/Makefile @@ -74,3 +74,7 @@ $(obj)/vmlinux.bin.xz: $(vmlinux.bin.all-y) LDFLAGS_piggy.o := -r --format binary --oformat $(LD_BFD) -T $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix-y) $(call if_changed,ld) + +chkbss := $(filter-out $(obj)/misc.o $(obj)/piggy.o,$(OBJECTS)) +chkbss-target := $(obj)/vmlinux.bin +include $(srctree)/arch/s390/scripts/Makefile.chkbss -- cgit v1.2.3