提交 e8c68825 编写于 作者: N Nicholas Piggin 提交者: Michael Ellerman

powerpc/64: Place sfpr section explicitly with the linker script

Signed-off-by: NNicholas Piggin <npiggin@gmail.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 308d263d
...@@ -115,6 +115,14 @@ SECTIONS ...@@ -115,6 +115,14 @@ SECTIONS
KPROBES_TEXT KPROBES_TEXT
IRQENTRY_TEXT IRQENTRY_TEXT
SOFTIRQENTRY_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(init.text)
MEM_KEEP(exit.text) MEM_KEEP(exit.text)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册