]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82680dc5a8eb7a25ed0ff2d4260aa0c28a31e166
tree97edfcee4981bc71c2e6a9dc853353010ac4fa94
parent569ccbeddefaf0854f822eb11ff42030f132b304
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