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>
This commit is contained in:
committed by
Ingo Molnar
parent
ae61836289
commit
bf6a57418d
@@ -309,6 +309,26 @@ SECTIONS
|
|||||||
*(.altinstr_replacement)
|
*(.altinstr_replacement)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* .exit.text is discard at runtime, not link time, to deal with
|
||||||
|
* references from .altinstructions and .eh_frame
|
||||||
|
*/
|
||||||
|
.exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) {
|
||||||
|
EXIT_TEXT
|
||||||
|
}
|
||||||
|
|
||||||
|
.exit.data : AT(ADDR(.exit.data) - LOAD_OFFSET) {
|
||||||
|
EXIT_DATA
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_BLK_DEV_INITRD
|
||||||
|
. = ALIGN(PAGE_SIZE);
|
||||||
|
.init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) {
|
||||||
|
__initramfs_start = .;
|
||||||
|
*(.init.ramfs)
|
||||||
|
__initramfs_end = .;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_X86_32
|
#ifdef CONFIG_X86_32
|
||||||
# include "vmlinux_32.lds.S"
|
# include "vmlinux_32.lds.S"
|
||||||
|
@@ -1,24 +1,3 @@
|
|||||||
/*
|
|
||||||
* .exit.text is discard at runtime, not link time, to deal with
|
|
||||||
* references from .altinstructions and .eh_frame
|
|
||||||
*/
|
|
||||||
.exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) {
|
|
||||||
EXIT_TEXT
|
|
||||||
}
|
|
||||||
|
|
||||||
.exit.data : AT(ADDR(.exit.data) - LOAD_OFFSET) {
|
|
||||||
EXIT_DATA
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(CONFIG_BLK_DEV_INITRD)
|
|
||||||
. = ALIGN(PAGE_SIZE);
|
|
||||||
.init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) {
|
|
||||||
__initramfs_start = .;
|
|
||||||
*(.init.ramfs)
|
|
||||||
__initramfs_end = .;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
PERCPU(PAGE_SIZE)
|
PERCPU(PAGE_SIZE)
|
||||||
|
|
||||||
. = ALIGN(PAGE_SIZE);
|
. = ALIGN(PAGE_SIZE);
|
||||||
|
@@ -1,24 +1,3 @@
|
|||||||
/*
|
|
||||||
* .exit.text is discard at runtime, not link time, to deal with
|
|
||||||
* references from .altinstructions and .eh_frame
|
|
||||||
*/
|
|
||||||
.exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) {
|
|
||||||
EXIT_TEXT
|
|
||||||
}
|
|
||||||
|
|
||||||
.exit.data : AT(ADDR(.exit.data) - LOAD_OFFSET) {
|
|
||||||
EXIT_DATA
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef CONFIG_BLK_DEV_INITRD
|
|
||||||
. = ALIGN(PAGE_SIZE);
|
|
||||||
.init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) {
|
|
||||||
__initramfs_start = .;
|
|
||||||
*(.init.ramfs)
|
|
||||||
__initramfs_end = .;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
/*
|
/*
|
||||||
* percpu offsets are zero-based on SMP. PERCPU_VADDR() changes the
|
* percpu offsets are zero-based on SMP. PERCPU_VADDR() changes the
|
||||||
|
Reference in New Issue
Block a user