SUPERH platform development
 help / color / mirror / Atom feed
* [PATCH 1/2] arch/sh: vmlinux.scr
@ 2020-03-15 17:51 Romain Naour
  2020-03-15 17:51 ` [PATCH 2/2] include/asm-generic: vmlinux.lds.h Romain Naour
  2020-03-26 20:42 ` [PATCH 1/2] arch/sh: vmlinux.scr Rich Felker
  0 siblings, 2 replies; 9+ messages in thread
From: Romain Naour @ 2020-03-15 17:51 UTC (permalink / raw)
  To: linux-sh

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ëd2263ba9a9124d93bbc0ece63d7e0fae89b40e
[2] https://www.sourceware.org/ml/binutils/2019-12/msg00112.html

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Alan Modra <amodra@gmail.com>
---
 arch/sh/boot/compressed/vmlinux.scr | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/sh/boot/compressed/vmlinux.scr b/arch/sh/boot/compressed/vmlinux.scr
index 862d74808236..dd292b4b9082 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)
-- 
2.24.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-03-29  2:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-15 17:51 [PATCH 1/2] arch/sh: vmlinux.scr Romain Naour
2020-03-15 17:51 ` [PATCH 2/2] include/asm-generic: vmlinux.lds.h Romain Naour
2020-03-15 18:12   ` Geert Uytterhoeven
2020-03-26  4:56   ` Rob Landley
2020-03-26 20:42   ` Rich Felker
2020-03-27 22:05   ` Rob Landley
2020-03-28 10:29   ` Geert Uytterhoeven
2020-03-29  2:10   ` Rob Landley
2020-03-26 20:42 ` [PATCH 1/2] arch/sh: vmlinux.scr Rich Felker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox