s390/decompressor: trim uncompressed image head during the build
authorVasily Gorbik <gor@linux.vnet.ibm.com>
Mon, 5 Mar 2018 08:58:00 +0000 (09:58 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 19 Mar 2018 06:02:07 +0000 (23:02 -0700)
commit81796a3c6a4ad3ba0408c807ec14f50e6270ec23
treef0906b8ea616d35acf2421c69bb9f25c58b080a5
parentc7260ca335a09fb186885c80bd6022318c10c541
s390/decompressor: trim uncompressed image head during the build

It seems to be suboptimal to compress the entire image, so that we
could decompress and throw away the first 68k (0x11000) during the boot
process. This patch trims 0x11000 bytes during the build process and
adjusts symbols in size.h accordingly.

Besides making bzImage smaller, this change would also be a benefit
for kaslr. It allows to decompress the kernel right to desired offset,
without worrying about dead weight in front of the decompressed image.

Signed-off-by: Vasily Gorbik <gor@linux.vnet.ibm.com>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/boot/compressed/Makefile
arch/s390/boot/compressed/head.S