diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2009-04-29 03:47:27 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-29 04:20:34 -0400 |
commit | bf6a57418d5445c98047edbec022c9e54d1526e6 (patch) | |
tree | aa36c0a20241df92ab9a5d1fcb2bb3d63fd6c2b1 /arch/x86/kernel/vmlinux.lds.S | |
parent | ae61836289a415351caa524d328110aaeae100d4 (diff) |
x86, vmlinux.lds: unify .exit.* and .init.ramfs
[ Impact: cleanup ]
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Tim Abbott <tabbott@MIT.EDU>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
LKML-Reference: <1240991249-27117-11-git-send-email-sam@ravnborg.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/x86/kernel/vmlinux.lds.S | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S index c8dd71ecb56f..1ab62a5fa1a5 100644 --- a/arch/x86/kernel/vmlinux.lds.S +++ b/arch/x86/kernel/vmlinux.lds.S | |||
@@ -309,6 +309,26 @@ SECTIONS | |||
309 | *(.altinstr_replacement) | 309 | *(.altinstr_replacement) |
310 | } | 310 | } |
311 | 311 | ||
312 | /* | ||
313 | * .exit.text is discard at runtime, not link time, to deal with | ||
314 | * references from .altinstructions and .eh_frame | ||
315 | */ | ||
316 | .exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) { | ||
317 | EXIT_TEXT | ||
318 | } | ||
319 | |||
320 | .exit.data : AT(ADDR(.exit.data) - LOAD_OFFSET) { | ||
321 | EXIT_DATA | ||
322 | } | ||
323 | |||
324 | #ifdef CONFIG_BLK_DEV_INITRD | ||
325 | . = ALIGN(PAGE_SIZE); | ||
326 | .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) { | ||
327 | __initramfs_start = .; | ||
328 | *(.init.ramfs) | ||
329 | __initramfs_end = .; | ||
330 | } | ||
331 | #endif | ||
312 | 332 | ||
313 | #ifdef CONFIG_X86_32 | 333 | #ifdef CONFIG_X86_32 |
314 | # include "vmlinux_32.lds.S" | 334 | # include "vmlinux_32.lds.S" |