Commit 24924ece authored by Jesper Nilsson's avatar Jesper Nilsson

CRIS: Cleanup linker script using new linker script macros.

Signed-off-by: default avatarTim Abbott <tabbott@ksplice.com>
Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
parent 62f589c5
...@@ -51,10 +51,7 @@ SECTIONS ...@@ -51,10 +51,7 @@ SECTIONS
_etext = . ; /* End of text section. */ _etext = . ; /* End of text section. */
__etext = .; __etext = .;
. = ALIGN(4); /* Exception table. */ EXCEPTION_TABLE(4)
__start___ex_table = .;
__ex_table : { *(__ex_table) }
__stop___ex_table = .;
RODATA RODATA
...@@ -67,36 +64,24 @@ SECTIONS ...@@ -67,36 +64,24 @@ SECTIONS
__edata = . ; /* End of data section. */ __edata = . ; /* End of data section. */
_edata = . ; _edata = . ;
. = ALIGN(PAGE_SIZE); /* init_task and stack, must be aligned. */ INIT_TASK_DATA_SECTION(PAGE_SIZE)
.data.init_task : { *(.data.init_task) }
. = 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_TEXT
_einittext = .;
}
.init.data : { INIT_DATA } .init.data : { INIT_DATA }
. = ALIGN(16); .init.setup : { INIT_SETUP(16) }
__setup_start = .;
.init.setup : { *(.init.setup) }
__setup_end = .;
#ifdef CONFIG_ETRAX_ARCH_V32 #ifdef CONFIG_ETRAX_ARCH_V32
__start___param = .; __start___param = .;
__param : { *(__param) } __param : { *(__param) }
__stop___param = .; __stop___param = .;
#endif #endif
.initcall.init : { .initcall.init : {
__initcall_start = .; INIT_CALLS
INITCALLS
__initcall_end = .;
} }
.con_initcall.init : { .con_initcall.init : {
__con_initcall_start = .; CON_INITCALL
*(.con_initcall.init)
__con_initcall_end = .;
} }
SECURITY_INIT SECURITY_INIT
...@@ -114,9 +99,7 @@ SECTIONS ...@@ -114,9 +99,7 @@ SECTIONS
PERCPU(PAGE_SIZE) PERCPU(PAGE_SIZE)
.init.ramfs : { .init.ramfs : {
__initramfs_start = .; INIT_RAM_FS
*(.init.ramfs)
__initramfs_end = .;
} }
#endif #endif
...@@ -130,11 +113,7 @@ SECTIONS ...@@ -130,11 +113,7 @@ SECTIONS
__init_end = .; __init_end = .;
__data_end = . ; /* Move to _edata ? */ __data_end = . ; /* Move to _edata ? */
__bss_start = .; /* BSS. */ BSS_SECTION(0, 0, 0)
.bss : {
*(COMMON)
*(.bss)
}
. = ALIGN (0x20); . = ALIGN (0x20);
_end = .; _end = .;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment