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/ia64/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/ia64/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/ia64/kernel/vmlinux.lds.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/ia64/kernel/vmlinux.lds.S b/arch/ia64/kernel/vmlinux.lds.S index 8f3d0066f446..25dd55e4db24 100644 --- a/arch/ia64/kernel/vmlinux.lds.S +++ b/arch/ia64/kernel/vmlinux.lds.S | |||
@@ -111,12 +111,14 @@ SECTIONS | |||
111 | .init.data : AT(ADDR(.init.data) - LOAD_OFFSET) | 111 | .init.data : AT(ADDR(.init.data) - LOAD_OFFSET) |
112 | { *(.init.data) } | 112 | { *(.init.data) } |
113 | 113 | ||
114 | #ifdef CONFIG_BLK_DEV_INITRD | ||
114 | .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) | 115 | .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) |
115 | { | 116 | { |
116 | __initramfs_start = .; | 117 | __initramfs_start = .; |
117 | *(.init.ramfs) | 118 | *(.init.ramfs) |
118 | __initramfs_end = .; | 119 | __initramfs_end = .; |
119 | } | 120 | } |
121 | #endif | ||
120 | 122 | ||
121 | . = ALIGN(16); | 123 | . = ALIGN(16); |
122 | .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET) | 124 | .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET) |