diff options
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" |