projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
308d263
)
powerpc/64: Place sfpr section explicitly with the linker script
author
Nicholas Piggin
<
[email protected]
>
Thu, 11 May 2017 15:56:48 +0000
(
01:56
+1000)
committer
Michael Ellerman
<
[email protected]
>
Tue, 30 May 2017 04:59:51 +0000
(14:59 +1000)
Signed-off-by: Nicholas Piggin <
[email protected]
>
Signed-off-by: Michael Ellerman <
[email protected]
>
arch/powerpc/kernel/vmlinux.lds.S
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/vmlinux.lds.S
b/arch/powerpc/kernel/vmlinux.lds.S
index 2f793be3d2b1db7ca56b43f7d4c346b65e1c6927..bcfda21c3179b6b6e5e077c1ec413c2d1a0a3873 100644
(file)
--- a/
arch/powerpc/kernel/vmlinux.lds.S
+++ b/
arch/powerpc/kernel/vmlinux.lds.S
@@
-115,6
+115,14
@@
SECTIONS
KPROBES_TEXT
IRQENTRY_TEXT
SOFTIRQENTRY_TEXT
+ /*
+ * -Os builds call FP save/restore functions. The powerpc64
+ * linker generates those on demand in the .sfpr section.
+ * .sfpr gets placed at the beginning of a group of input
+ * sections, which can break start-of-text offset if it is
+ * included with the main text sections, so put it by itself.
+ */
+ *(.sfpr);
MEM_KEEP(init.text)
MEM_KEEP(exit.text)