From da99f00ece82cb51ca5ead97008658e1dc49782b Mon Sep 17 00:00:00 2001 From: Stafford Horne Date: Fri, 13 Jan 2017 19:22:04 +0900 Subject: openrisc: head: Move init strings to rodata section 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 --- arch/openrisc/kernel/head.S | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/openrisc') diff --git a/arch/openrisc/kernel/head.S b/arch/openrisc/kernel/head.S index a22f1fc40a6c..ceb2d536fc77 100644 --- a/arch/openrisc/kernel/head.S +++ b/arch/openrisc/kernel/head.S @@ -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" -- cgit v1.2.3