all archs: consolidate init and exit sections in vmlinux.lds.h
This patch consolidate all definitions of .init.text, .init.data and .exit.text, .exit.data section definitions in the generic vmlinux.lds.h. This is a preparational patch - alone it does not buy us much good. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
@@ -30,7 +30,7 @@ SECTIONS
|
||||
}
|
||||
|
||||
.init : { /* Init code and data */
|
||||
*(.init.text)
|
||||
INIT_TEXT
|
||||
_einittext = .;
|
||||
__proc_info_begin = .;
|
||||
*(.proc.info.init)
|
||||
@@ -70,15 +70,15 @@ SECTIONS
|
||||
__per_cpu_end = .;
|
||||
#ifndef CONFIG_XIP_KERNEL
|
||||
__init_begin = _stext;
|
||||
*(.init.data)
|
||||
INIT_DATA
|
||||
. = ALIGN(4096);
|
||||
__init_end = .;
|
||||
#endif
|
||||
}
|
||||
|
||||
/DISCARD/ : { /* Exit code and data */
|
||||
*(.exit.text)
|
||||
*(.exit.data)
|
||||
EXIT_TEXT
|
||||
EXIT_DATA
|
||||
*(.exitcall.exit)
|
||||
#ifndef CONFIG_MMU
|
||||
*(.fixup)
|
||||
@@ -130,7 +130,7 @@ SECTIONS
|
||||
#ifdef CONFIG_XIP_KERNEL
|
||||
. = ALIGN(4096);
|
||||
__init_begin = .;
|
||||
*(.init.data)
|
||||
INIT_DATA
|
||||
. = ALIGN(4096);
|
||||
__init_end = .;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user