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/sparc/kernel/vmlinux.lds.S | |
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/sparc/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/sparc/kernel/vmlinux.lds.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc/kernel/vmlinux.lds.S b/arch/sparc/kernel/vmlinux.lds.S index b73e6b9067ed..e5c24e0521de 100644 --- a/arch/sparc/kernel/vmlinux.lds.S +++ b/arch/sparc/kernel/vmlinux.lds.S | |||
@@ -57,10 +57,14 @@ SECTIONS | |||
57 | .con_initcall.init : { *(.con_initcall.init) } | 57 | .con_initcall.init : { *(.con_initcall.init) } |
58 | __con_initcall_end = .; | 58 | __con_initcall_end = .; |
59 | SECURITY_INIT | 59 | SECURITY_INIT |
60 | |||
61 | #ifdef CONFIG_BLK_DEV_INITRD | ||
60 | . = ALIGN(4096); | 62 | . = ALIGN(4096); |
61 | __initramfs_start = .; | 63 | __initramfs_start = .; |
62 | .init.ramfs : { *(.init.ramfs) } | 64 | .init.ramfs : { *(.init.ramfs) } |
63 | __initramfs_end = .; | 65 | __initramfs_end = .; |
66 | #endif | ||
67 | |||
64 | . = ALIGN(32); | 68 | . = ALIGN(32); |
65 | __per_cpu_start = .; | 69 | __per_cpu_start = .; |
66 | .data.percpu : { *(.data.percpu) } | 70 | .data.percpu : { *(.data.percpu) } |