]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc622299c77702822ecbb4c352823942a18860759
treef0906b8ea616d35acf2421c69bb9f25c58b080a5
parent02bee9a197ef32bf4e590228fad067a9c267bb7b
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