OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6d20c5
)
openrisc: head: Move init strings to rodata section
author
Stafford Horne
<shorne@gmail.com>
Fri, 13 Jan 2017 10:22:04 +0000
(19:22 +0900)
committer
Stafford 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
patch
|
blob
|
history
diff --git
a/arch/openrisc/kernel/head.S
b/arch/openrisc/kernel/head.S
index
a22f1fc
..
ceb2d53
100644
(file)
--- 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"