diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-11-03 22:28:39 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-11-07 22:15:33 -0500 |
commit | e95c91821fa56b489d7beb74103a419466c5ec10 (patch) | |
tree | db283f1099e1f9ae069a88d027273b3fbe621e0f /arch/powerpc/kernel | |
parent | 18244cfbc34e6bb3793977739b359a248899f42a (diff) |
[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>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/vmlinux.lds.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index 823a8cbd60b5..f66fa5d966b0 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S | |||
@@ -37,11 +37,10 @@ SECTIONS | |||
37 | ALIGN_FUNCTION(); | 37 | ALIGN_FUNCTION(); |
38 | *(.text.head) | 38 | *(.text.head) |
39 | _text = .; | 39 | _text = .; |
40 | TEXT_TEXT | 40 | *(.text .fixup .text.init.refok .exit.text.refok) |
41 | SCHED_TEXT | 41 | SCHED_TEXT |
42 | LOCK_TEXT | 42 | LOCK_TEXT |
43 | KPROBES_TEXT | 43 | KPROBES_TEXT |
44 | *(.fixup) | ||
45 | 44 | ||
46 | #ifdef CONFIG_PPC32 | 45 | #ifdef CONFIG_PPC32 |
47 | *(.got1) | 46 | *(.got1) |