OSDN Git Service

s390/kernel: build a relocatable kernel
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Sun, 3 Feb 2019 20:35:45 +0000 (21:35 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 29 Apr 2019 08:47:10 +0000 (10:47 +0200)
commit805bc0bc238f7209fca5e39c152b0d3c12046ac9
tree97edfcee4981bc71c2e6a9dc853353010ac4fa94
parent833b441ec0f6f3c57cc2106ef628bb19d8fb0ee2
s390/kernel: build a relocatable kernel

This patch adds support for building a relocatable kernel with -fPIE.
The kernel will be relocated to 0 early in the boot process.

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Reviewed-by: Philipp Rudo <prudo@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/Kconfig
arch/s390/Makefile
arch/s390/boot/Makefile
arch/s390/boot/compressed/decompressor.h
arch/s390/boot/machine_kexec_reloc.c [new file with mode: 0644]
arch/s390/boot/startup.c
arch/s390/include/asm/kexec.h
arch/s390/kernel/Makefile
arch/s390/kernel/machine_kexec_file.c
arch/s390/kernel/machine_kexec_reloc.c [new file with mode: 0644]
arch/s390/kernel/vmlinux.lds.S