mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 23:24:11 +08:00
mn10300: Clean up linker script using higher-level macros.
Signed-off-by: Tim Abbott <tabbott@ksplice.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
eb121d1f17
commit
4295f8b318
@ -44,24 +44,8 @@ SECTIONS
|
|||||||
RO_DATA(PAGE_SIZE)
|
RO_DATA(PAGE_SIZE)
|
||||||
|
|
||||||
/* writeable */
|
/* writeable */
|
||||||
.data : { /* Data */
|
RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
|
||||||
DATA_DATA
|
_edata = .;
|
||||||
CONSTRUCTORS
|
|
||||||
}
|
|
||||||
|
|
||||||
.data_nosave : { NOSAVE_DATA; }
|
|
||||||
|
|
||||||
.data.page_aligned : { PAGE_ALIGNED_DATA(PAGE_SIZE); }
|
|
||||||
.data.cacheline_aligned : { CACHELINE_ALIGNED_DATA(32); }
|
|
||||||
|
|
||||||
/* rarely changed data like cpu maps */
|
|
||||||
. = ALIGN(32);
|
|
||||||
.data.read_mostly : AT(ADDR(.data.read_mostly)) {
|
|
||||||
READ_MOSTLY_DATA(32);
|
|
||||||
_edata = .; /* End of data section */
|
|
||||||
}
|
|
||||||
|
|
||||||
.data.init_task : { INIT_TASK_DATA(THREAD_SIZE); }
|
|
||||||
|
|
||||||
/* might get freed after init */
|
/* might get freed after init */
|
||||||
. = ALIGN(PAGE_SIZE);
|
. = ALIGN(PAGE_SIZE);
|
||||||
@ -74,22 +58,8 @@ SECTIONS
|
|||||||
/* will be freed after init */
|
/* will be freed after init */
|
||||||
. = ALIGN(PAGE_SIZE); /* Init code and data */
|
. = ALIGN(PAGE_SIZE); /* Init code and data */
|
||||||
__init_begin = .;
|
__init_begin = .;
|
||||||
.init.text : {
|
INIT_TEXT_SECTION(PAGE_SIZE)
|
||||||
_sinittext = .;
|
INIT_DATA_SECTION(16)
|
||||||
INIT_TEXT;
|
|
||||||
_einittext = .;
|
|
||||||
}
|
|
||||||
.init.data : { INIT_DATA; }
|
|
||||||
.setup.init : { INIT_SETUP(16); }
|
|
||||||
|
|
||||||
__initcall_start = .;
|
|
||||||
.initcall.init : {
|
|
||||||
INITCALLS
|
|
||||||
}
|
|
||||||
__initcall_end = .;
|
|
||||||
.con_initcall.init : { CON_INITCALL; }
|
|
||||||
|
|
||||||
SECURITY_INIT
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__alt_instructions = .;
|
__alt_instructions = .;
|
||||||
.altinstructions : { *(.altinstructions) }
|
.altinstructions : { *(.altinstructions) }
|
||||||
@ -100,8 +70,6 @@ SECTIONS
|
|||||||
.exit.text : { EXIT_TEXT; }
|
.exit.text : { EXIT_TEXT; }
|
||||||
.exit.data : { EXIT_DATA; }
|
.exit.data : { EXIT_DATA; }
|
||||||
|
|
||||||
.init.ramfs : { INIT_RAM_FS; }
|
|
||||||
|
|
||||||
PERCPU(32)
|
PERCPU(32)
|
||||||
. = ALIGN(PAGE_SIZE);
|
. = ALIGN(PAGE_SIZE);
|
||||||
__init_end = .;
|
__init_end = .;
|
||||||
|
Loading…
Reference in New Issue
Block a user