提交 e95c9182 编写于 作者: S Stephen Rothwell 提交者: Paul Mackerras

[POWERPC] Fix link errors for allyesconfig

An allyesconfig build creates a .text section that is so big that the
.text.init.refok and .fixup sections are too far away for the relocations
to be fixed up correctly. This patch fixes that by linking all the
relevent text sections for each file together.

Suggested by Paul Mackerras.
Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 18244cfb
...@@ -37,11 +37,10 @@ SECTIONS ...@@ -37,11 +37,10 @@ SECTIONS
ALIGN_FUNCTION(); ALIGN_FUNCTION();
*(.text.head) *(.text.head)
_text = .; _text = .;
TEXT_TEXT *(.text .fixup .text.init.refok .exit.text.refok)
SCHED_TEXT SCHED_TEXT
LOCK_TEXT LOCK_TEXT
KPROBES_TEXT KPROBES_TEXT
*(.fixup)
#ifdef CONFIG_PPC32 #ifdef CONFIG_PPC32
*(.got1) *(.got1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册