0002-include-asm-generic-vmlinux.lds.h.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From 7f92adbba385a4e512abfd6633ac0f9f0cdf91f8 Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@gmail.com>
  3. Date: Sat, 21 Dec 2019 11:54:07 +0100
  4. Subject: [PATCH] include/asm-generic: vmlinux.lds.h
  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. include/asm-generic/vmlinux.lds.h | 1 +
  13. 1 file changed, 1 insertion(+)
  14. diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
  15. index d7701d466b60..1aa33597e91e 100644
  16. --- a/include/asm-generic/vmlinux.lds.h
  17. +++ b/include/asm-generic/vmlinux.lds.h
  18. @@ -306,6 +306,7 @@
  19. */
  20. #ifndef RO_AFTER_INIT_DATA
  21. #define RO_AFTER_INIT_DATA \
  22. + . = ALIGN(8); \
  23. __start_ro_after_init = .; \
  24. *(.data..ro_after_init) \
  25. __end_ro_after_init = .;
  26. --
  27. 2.24.1