summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
authorJean-Paul Saman2007-02-10 10:44:44 +0100
committerLinus Torvalds2007-02-11 19:51:25 +0100
commit67d38229dfa64cf9a75f83746dde345f47bbd8dc (patch)
tree36ecb1005e79616e4d1274e1c0ebf793125aeb38 /arch/arm/kernel/vmlinux.lds.S
parent[PATCH] disable init/initramfs.c (diff)
downloadkernel-qcow2-linux-67d38229dfa64cf9a75f83746dde345f47bbd8dc.tar.gz
kernel-qcow2-linux-67d38229dfa64cf9a75f83746dde345f47bbd8dc.tar.xz
kernel-qcow2-linux-67d38229dfa64cf9a75f83746dde345f47bbd8dc.zip
[PATCH] disable init/initramfs.c: architectures
Update all arch/*/kernel/vmlinux.lds.S to not include space for initramfs when CONFIG_BLK_DEV_INITRAMFS is not selected. This saves another 4 kbytes on most platfoms (some reserve PAGE_SIZE for initramfs). Signed-off-by: Jean-Paul Saman <jean-paul.saman@nxp.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: <linux-arch@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm/kernel/vmlinux.lds.S')
-rw-r--r--arch/arm/kernel/vmlinux.lds.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
index a8fa75ea07a9..b929a60f7547 100644
--- a/arch/arm/kernel/vmlinux.lds.S
+++ b/arch/arm/kernel/vmlinux.lds.S
@@ -53,10 +53,12 @@ SECTIONS
__security_initcall_start = .;
*(.security_initcall.init)
__security_initcall_end = .;
+#ifdef CONFIG_BLK_DEV_INITRD
. = ALIGN(32);
__initramfs_start = .;
usr/built-in.o(.init.ramfs)
__initramfs_end = .;
+#endif
. = ALIGN(64);
__per_cpu_start = .;
*(.data.percpu)