[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: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
18244cfbc3
commit
e95c91821f
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue