From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de ([195.135.220.15]:57948 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727266AbfGLRVN (ORCPT ); Fri, 12 Jul 2019 13:21:13 -0400 From: Petr Tesarik Subject: [PATCH 2/2] s390: add Linux banner to the compressed image Date: Fri, 12 Jul 2019 19:21:01 +0200 Message-Id: In-Reply-To: References: Sender: linux-s390-owner@vger.kernel.org List-ID: To: Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Martin Schwidefsky , Philipp Rudo , Masahiro Yamada , Greg Kroah-Hartman , Laura Abbott , Thomas Gleixner Cc: Petr Tesarik , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Various tools determine the kernel version from a given binary by scanning for the Linux banner string. This does not work if the banner string is compressed, but we can link it once more into the uncompressed portion of bzImage. Signed-off-by: Petr Tesarik --- arch/s390/boot/compressed/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/s390/boot/compressed/Makefile b/arch/s390/boot/compressed/Makefile index fa529c5b4486..9bc4685477c5 100644 --- a/arch/s390/boot/compressed/Makefile +++ b/arch/s390/boot/compressed/Makefile @@ -11,6 +11,7 @@ UBSAN_SANITIZE := n KASAN_SANITIZE := n obj-y := $(if $(CONFIG_KERNEL_UNCOMPRESSED),,decompressor.o) piggy.o info.o +obj-y += ../../../../init/banner.o targets := vmlinux.lds vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 targets += vmlinux.bin.xz vmlinux.bin.lzma vmlinux.bin.lzo vmlinux.bin.lz4 targets += info.bin $(obj-y) -- 2.16.4