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/x86_64/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/x86_64/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/x86_64/kernel/vmlinux.lds.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/vmlinux.lds.S b/arch/x86_64/kernel/vmlinux.lds.S index 1e54ddf2338d..c360c4225244 100644 --- a/arch/x86_64/kernel/vmlinux.lds.S +++ b/arch/x86_64/kernel/vmlinux.lds.S | |||
@@ -192,10 +192,14 @@ SECTIONS | |||
192 | from .altinstructions and .eh_frame */ | 192 | from .altinstructions and .eh_frame */ |
193 | .exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) { *(.exit.text) } | 193 | .exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) { *(.exit.text) } |
194 | .exit.data : AT(ADDR(.exit.data) - LOAD_OFFSET) { *(.exit.data) } | 194 | .exit.data : AT(ADDR(.exit.data) - LOAD_OFFSET) { *(.exit.data) } |
195 | |||
196 | #ifdef CONFIG_BLK_DEV_INITRD | ||
195 | . = ALIGN(4096); | 197 | . = ALIGN(4096); |
196 | __initramfs_start = .; | 198 | __initramfs_start = .; |
197 | .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) { *(.init.ramfs) } | 199 | .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) { *(.init.ramfs) } |
198 | __initramfs_end = .; | 200 | __initramfs_end = .; |
201 | #endif | ||
202 | |||
199 | . = ALIGN(CONFIG_X86_L1_CACHE_BYTES); | 203 | . = ALIGN(CONFIG_X86_L1_CACHE_BYTES); |
200 | __per_cpu_start = .; | 204 | __per_cpu_start = .; |
201 | .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) { *(.data.percpu) } | 205 | .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) { *(.data.percpu) } |