diff options
author | Jean-Paul Saman <jean-paul.saman@nxp.com> | 2007-02-10 04:44:44 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:25 -0500 |
commit | 67d38229dfa64cf9a75f83746dde345f47bbd8dc (patch) | |
tree | 36ecb1005e79616e4d1274e1c0ebf793125aeb38 /arch/cris/arch-v32 | |
parent | c33df4eaaf41fd3e34837a6ae9a5f9970c393d9f (diff) |
[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/cris/arch-v32')
-rw-r--r-- | arch/cris/arch-v32/vmlinux.lds.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/cris/arch-v32/vmlinux.lds.S b/arch/cris/arch-v32/vmlinux.lds.S index 472d4b3c4cf4..e124fcd766d5 100644 --- a/arch/cris/arch-v32/vmlinux.lds.S +++ b/arch/cris/arch-v32/vmlinux.lds.S | |||
@@ -95,6 +95,7 @@ SECTIONS | |||
95 | .data.percpu : { *(.data.percpu) } | 95 | .data.percpu : { *(.data.percpu) } |
96 | __per_cpu_end = .; | 96 | __per_cpu_end = .; |
97 | 97 | ||
98 | #ifdef CONFIG_BLK_DEV_INITRD | ||
98 | .init.ramfs : { | 99 | .init.ramfs : { |
99 | __initramfs_start = .; | 100 | __initramfs_start = .; |
100 | *(.init.ramfs) | 101 | *(.init.ramfs) |
@@ -107,6 +108,7 @@ SECTIONS | |||
107 | FILL (0); | 108 | FILL (0); |
108 | . = ALIGN (8192); | 109 | . = ALIGN (8192); |
109 | } | 110 | } |
111 | #endif | ||
110 | 112 | ||
111 | __vmlinux_end = .; /* Last address of the physical file. */ | 113 | __vmlinux_end = .; /* Last address of the physical file. */ |
112 | __init_end = .; | 114 | __init_end = .; |