0001-arch-sh-vmlinux.scr.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From fe657afd48fc67841d32207ef9eeeb5f099764cd Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@gmail.com>
  3. Date: Sat, 21 Dec 2019 11:52:04 +0100
  4. Subject: [PATCH] arch/sh: vmlinux.scr
  5. Building the kernel using a toolchain built with Binutils 2.33.1 prevent
  6. booting a sh4 system under Qemu.
  7. Apply the patch provided by Alan Modra [2] that fix alignment of rodata.
  8. [1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ebd2263ba9a9124d93bbc0ece63d7e0fae89b40e
  9. [2] https://www.sourceware.org/ml/binutils/2019-12/msg00112.html
  10. Signed-off-by: Romain Naour <romain.naour@gmail.com>
  11. ---
  12. arch/sh/boot/compressed/vmlinux.scr | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/arch/sh/boot/compressed/vmlinux.scr b/arch/sh/boot/compressed/vmlinux.scr
  15. index 862d74808236..dd292b4b9082 100644
  16. --- a/arch/sh/boot/compressed/vmlinux.scr
  17. +++ b/arch/sh/boot/compressed/vmlinux.scr
  18. @@ -1,6 +1,6 @@
  19. SECTIONS
  20. {
  21. - .rodata..compressed : {
  22. + .rodata..compressed : ALIGN(8) {
  23. input_len = .;
  24. LONG(input_data_end - input_data) input_data = .;
  25. *(.data)
  26. --
  27. 2.24.1