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/parisc | |
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/parisc')
-rw-r--r-- | arch/parisc/kernel/vmlinux.lds.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/parisc/kernel/vmlinux.lds.S b/arch/parisc/kernel/vmlinux.lds.S index 7b943b45f7cd..3b78c2794c36 100644 --- a/arch/parisc/kernel/vmlinux.lds.S +++ b/arch/parisc/kernel/vmlinux.lds.S | |||
@@ -173,10 +173,12 @@ SECTIONS | |||
173 | from .altinstructions and .eh_frame */ | 173 | from .altinstructions and .eh_frame */ |
174 | .exit.text : { *(.exit.text) } | 174 | .exit.text : { *(.exit.text) } |
175 | .exit.data : { *(.exit.data) } | 175 | .exit.data : { *(.exit.data) } |
176 | #ifdef CONFIG_BLK_DEV_INITRD | ||
176 | . = ALIGN(ASM_PAGE_SIZE); | 177 | . = ALIGN(ASM_PAGE_SIZE); |
177 | __initramfs_start = .; | 178 | __initramfs_start = .; |
178 | .init.ramfs : { *(.init.ramfs) } | 179 | .init.ramfs : { *(.init.ramfs) } |
179 | __initramfs_end = .; | 180 | __initramfs_end = .; |
181 | #endif | ||
180 | . = ALIGN(32); | 182 | . = ALIGN(32); |
181 | __per_cpu_start = .; | 183 | __per_cpu_start = .; |
182 | .data.percpu : { *(.data.percpu) } | 184 | .data.percpu : { *(.data.percpu) } |