]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
openrisc: head: Move init strings to rodata section
authorStafford Horne <shorne@gmail.com>
Fri, 13 Jan 2017 10:22:04 +0000 (19:22 +0900)
committerStafford Horne <shorne@gmail.com>
Fri, 24 Feb 2017 20:05:37 +0000 (05:05 +0900)
The strings used during the head/init phase of openrisc bootup were
stored in the executable section of the binary.

This causes compilation to fail when using CONFIG_DEBUG_INFO with
error:
 Error: unaligned opcodes detected in executable segment

Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/kernel/head.S

index a22f1fc40a6c03a0250846e5ab1f1a96aafc7f43..ceb2d536fc77fa030a9914af712f8ebeb57c63f1 100644 (file)
@@ -1530,6 +1530,7 @@ ENTRY(_early_uart_init)
        l.jr    r9
        l.nop
 
+       .section .rodata
 _string_copying_linux:
        .string "\n\n\n\n\n\rCopying Linux... \0"