acrn-kernel/arch/s390/boot
Heiko Carstens 80ddf5ce1c s390: always build relocatable kernel
Nathan Chancellor reported several link errors on s390 with
CONFIG_RELOCATABLE disabled, after binutils commit 906f69cf65da ("IBM
zSystems: Issue error for *DBL relocs on misaligned symbols"). The binutils
commit reveals potential miscompiles that might have happened already
before with linker script defined symbols at odd addresses.

A similar bug was recently fixed in the kernel with commit c9305b6c1f
("s390: fix nospec table alignments").

See https://github.com/ClangBuiltLinux/linux/issues/1747 for an analysis
from Ulich Weigand.

Therefore always build a relocatable kernel to avoid this problem. There is
hardly any use-case for non-relocatable kernels, so this shouldn't be
controversial.

Link: https://github.com/ClangBuiltLinux/linux/issues/1747
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Reported-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20221030182202.2062705-1-hca@linux.ibm.com
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
2022-11-08 19:32:32 +01:00
..
.gitignore s390/boot: get rid of startup archive 2022-05-06 20:45:14 +02:00
Makefile s390: always build relocatable kernel 2022-11-08 19:32:32 +01:00
als.c
boot.h s390/boot: convert initial lowcore to C 2022-05-06 20:45:15 +02:00
clz_ctz.c s390/boot: get rid of startup archive 2022-05-06 20:45:14 +02:00
cmdline.c
ctype.c
decompressor.c s390/boot: get rid of startup archive 2022-05-06 20:45:14 +02:00
decompressor.h s390/boot: get rid of startup archive 2022-05-06 20:45:14 +02:00
ebcdic.c
head.S s390/head: get rid of 31 bit leftovers 2022-05-18 13:31:07 +02:00
head_kdump.S
install.sh kbuild: factor out the common installation code into scripts/install.sh 2022-05-11 21:45:53 +09:00
ipl_data.c s390/boot: convert parmarea to C 2022-05-06 20:45:15 +02:00
ipl_parm.c s390/boot: convert parmarea to C 2022-05-06 20:45:15 +02:00
ipl_report.c
ipl_vmparm.c
kaslr.c s390/boot: get rid of startup archive 2022-05-06 20:45:14 +02:00
machine_kexec_reloc.c
mem.S
mem_detect.c s390/boot: get rid of startup archive 2022-05-06 20:45:14 +02:00
pgm_check_info.c
sclp_early_core.c
startup.c s390: always build relocatable kernel 2022-11-08 19:32:32 +01:00
string.c
uv.c s390 updates for 5.20 merge window 2022-08-06 17:05:21 -07:00
uv.h s390/boot: cleanup adjust_to_uv_max() function 2022-07-28 18:05:23 +02:00
version.c kbuild: build init/built-in.a just once 2022-09-29 04:40:15 +09:00
vmlinux.lds.S s390/boot: add secure boot trailer 2022-10-26 14:47:31 +02:00