ARM: vmlinux.lds: move init sections between text and data sections
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 6 Jul 2011 09:39:34 +0000 (10:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 7 Jul 2011 22:36:31 +0000 (23:36 +0100)
commit3835d69a6c7048a28d0aea3cb8403d5e83a0f867
tree3c655f48fe1a36100ad193b79555750e8745c7f9
parent43fc9d2fa5585adfadd0fdc06a20626727cf985a
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>
arch/arm/kernel/vmlinux.lds.S
arch/arm/mm/init.c