aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/init.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-07-06 05:39:34 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-07-07 18:36:31 -0400
commit3835d69a6c7048a28d0aea3cb8403d5e83a0f867 (patch)
tree3c655f48fe1a36100ad193b79555750e8745c7f9 /arch/arm/mm/init.c
parent43fc9d2fa5585adfadd0fdc06a20626727cf985a (diff)
ARM: vmlinux.lds: move init sections between text and data sections
Place the init sections between the text and data sections. This means all code is grouped together at the beginning of the kernel image, and all data is at the end of the image. This avoids problems with the 24-bit branch instruction relocations becoming invalid with large initramfs images. Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org> Tested-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/init.c')
-rw-r--r--arch/arm/mm/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index c19571c40a21..b8e891243153 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -639,8 +639,8 @@ void __init mem_init(void)
639 " pkmap : 0x%08lx - 0x%08lx (%4ld MB)\n" 639 " pkmap : 0x%08lx - 0x%08lx (%4ld MB)\n"
640#endif 640#endif
641 " modules : 0x%08lx - 0x%08lx (%4ld MB)\n" 641 " modules : 0x%08lx - 0x%08lx (%4ld MB)\n"
642 " .init : 0x%p" " - 0x%p" " (%4d kB)\n"
643 " .text : 0x%p" " - 0x%p" " (%4d kB)\n" 642 " .text : 0x%p" " - 0x%p" " (%4d kB)\n"
643 " .init : 0x%p" " - 0x%p" " (%4d kB)\n"
644 " .data : 0x%p" " - 0x%p" " (%4d kB)\n" 644 " .data : 0x%p" " - 0x%p" " (%4d kB)\n"
645 " .bss : 0x%p" " - 0x%p" " (%4d kB)\n", 645 " .bss : 0x%p" " - 0x%p" " (%4d kB)\n",
646 646
@@ -662,8 +662,8 @@ void __init mem_init(void)
662#endif 662#endif
663 MLM(MODULES_VADDR, MODULES_END), 663 MLM(MODULES_VADDR, MODULES_END),
664 664
665 MLK_ROUNDUP(__init_begin, __init_end),
666 MLK_ROUNDUP(_text, _etext), 665 MLK_ROUNDUP(_text, _etext),
666 MLK_ROUNDUP(__init_begin, __init_end),
667 MLK_ROUNDUP(_sdata, _edata), 667 MLK_ROUNDUP(_sdata, _edata),
668 MLK_ROUNDUP(__bss_start, __bss_stop)); 668 MLK_ROUNDUP(__bss_start, __bss_stop));
669 669