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/ppc/kernel | |
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/ppc/kernel')
-rw-r--r-- | arch/ppc/kernel/vmlinux.lds.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/ppc/kernel/vmlinux.lds.S b/arch/ppc/kernel/vmlinux.lds.S index 61921268a0d0..a0625562a44b 100644 --- a/arch/ppc/kernel/vmlinux.lds.S +++ b/arch/ppc/kernel/vmlinux.lds.S | |||
@@ -135,10 +135,12 @@ SECTIONS | |||
135 | .data.percpu : { *(.data.percpu) } | 135 | .data.percpu : { *(.data.percpu) } |
136 | __per_cpu_end = .; | 136 | __per_cpu_end = .; |
137 | 137 | ||
138 | #ifdef CONFIG_BLK_DEV_INITRD | ||
138 | . = ALIGN(4096); | 139 | . = ALIGN(4096); |
139 | __initramfs_start = .; | 140 | __initramfs_start = .; |
140 | .init.ramfs : { *(.init.ramfs) } | 141 | .init.ramfs : { *(.init.ramfs) } |
141 | __initramfs_end = .; | 142 | __initramfs_end = .; |
143 | #endif | ||
142 | 144 | ||
143 | . = ALIGN(4096); | 145 | . = ALIGN(4096); |
144 | __init_end = .; | 146 | __init_end = .; |