From: Romain Naour Date: Sun, 15 Mar 2020 17:51:07 +0000 (+0100) Subject: arch/sh: vmlinux.scr X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2bbb0e3cc8d4cd51fce9b306e207dba668d39c5f;p=linux.git arch/sh: vmlinux.scr Since the patch [1], building the kernel using a toolchain built with Binutils 2.33.1 prevent booting a sh4 system under Qemu. Apply the patch provided by Alan Modra [2] that fix alignment of rodata. [1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ebd2263ba9a9124d93bbc0ece63d7e0fae89b40e [2] https://www.sourceware.org/ml/binutils/2019-12/msg00112.html Signed-off-by: Romain Naour Cc: Alan Modra Signed-off-by: Rich Felker --- diff --git a/arch/sh/boot/compressed/vmlinux.scr b/arch/sh/boot/compressed/vmlinux.scr index 862d748082369..dd292b4b9082b 100644 --- a/arch/sh/boot/compressed/vmlinux.scr +++ b/arch/sh/boot/compressed/vmlinux.scr @@ -1,6 +1,6 @@ SECTIONS { - .rodata..compressed : { + .rodata..compressed : ALIGN(8) { input_len = .; LONG(input_data_end - input_data) input_data = .; *(.data)