]> asedeno.scripts.mit.edu Git - linux.git/commit
s390/decompressor: get rid of .bss usage
authorVasily Gorbik <gor@linux.ibm.com>
Wed, 25 Jul 2018 11:27:27 +0000 (13:27 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Oct 2018 09:21:03 +0000 (11:21 +0200)
commita2ac1bb1f3ddbad8388b0ba4edf28ff501009cea
tree46a34dd1a0414644a37d0590ab393bf5d00a8012
parent369f91c374514f9491d52fec12f7ee9ef6d44b23
s390/decompressor: get rid of .bss usage

Using .bss in early code should be avoided. It might overlay initrd
image or not yet be initialized. Clean up the last couple of places in
the decompressor's code where .bss is used and enfore no .bss usage
check on boot/compressed/misc.c. In particular:
- initializing free_mem_ptr and free_mem_end_ptr with values guarantee
that these variables won't end up in the .bss section.
- define STATIC_RW_DATA to go into .data section.

Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/boot/compressed/Makefile
arch/s390/boot/compressed/misc.c