diff options
author | Stafford Horne <shorne@gmail.com> | 2017-01-13 05:22:04 -0500 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2017-02-24 15:05:37 -0500 |
commit | da99f00ece82cb51ca5ead97008658e1dc49782b (patch) | |
tree | 627e0bce5bc32ca605869a61145f14481b89322a | |
parent | e6d20c55a4d94eca419f80f996133f523ecedfe0 (diff) |
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 <shorne@gmail.com>
-rw-r--r-- | arch/openrisc/kernel/head.S | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
1530 | l.jr r9 | 1530 | l.jr r9 |
1531 | l.nop | 1531 | l.nop |
1532 | 1532 | ||
1533 | .section .rodata | ||
1533 | _string_copying_linux: | 1534 | _string_copying_linux: |
1534 | .string "\n\n\n\n\n\rCopying Linux... \0" | 1535 | .string "\n\n\n\n\n\rCopying Linux... \0" |
1535 | 1536 | ||