Commit e95c91821fa56b489d7beb74103a419466c5ec10

Authored by Stephen Rothwell
Committed by Paul Mackerras
1 parent 18244cfbc3

[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>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

arch/powerpc/kernel/vmlinux.lds.S
... ... @@ -37,11 +37,10 @@
37 37 ALIGN_FUNCTION();
38 38 *(.text.head)
39 39 _text = .;
40   - TEXT_TEXT
  40 + *(.text .fixup .text.init.refok .exit.text.refok)
41 41 SCHED_TEXT
42 42 LOCK_TEXT
43 43 KPROBES_TEXT
44   - *(.fixup)
45 44  
46 45 #ifdef CONFIG_PPC32
47 46 *(.got1)