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/i386 | |
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/i386')
-rw-r--r-- | arch/i386/kernel/vmlinux.lds.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/i386/kernel/vmlinux.lds.S b/arch/i386/kernel/vmlinux.lds.S index a53c8b1854b5..5038a73d554e 100644 --- a/arch/i386/kernel/vmlinux.lds.S +++ b/arch/i386/kernel/vmlinux.lds.S | |||
@@ -181,12 +181,14 @@ SECTIONS | |||
181 | from .altinstructions and .eh_frame */ | 181 | from .altinstructions and .eh_frame */ |
182 | .exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) { *(.exit.text) } | 182 | .exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) { *(.exit.text) } |
183 | .exit.data : AT(ADDR(.exit.data) - LOAD_OFFSET) { *(.exit.data) } | 183 | .exit.data : AT(ADDR(.exit.data) - LOAD_OFFSET) { *(.exit.data) } |
184 | #if defined(CONFIG_BLK_DEV_INITRD) | ||
184 | . = ALIGN(4096); | 185 | . = ALIGN(4096); |
185 | .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) { | 186 | .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) { |
186 | __initramfs_start = .; | 187 | __initramfs_start = .; |
187 | *(.init.ramfs) | 188 | *(.init.ramfs) |
188 | __initramfs_end = .; | 189 | __initramfs_end = .; |
189 | } | 190 | } |
191 | #endif | ||
190 | . = ALIGN(L1_CACHE_BYTES); | 192 | . = ALIGN(L1_CACHE_BYTES); |
191 | .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) { | 193 | .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) { |
192 | __per_cpu_start = .; | 194 | __per_cpu_start = .; |