CRIS: Cleanup linker script using new linker script macros.

Signed-off-by: Tim Abbott <tabbott@ksplice.com>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
This commit is contained in:
Jesper Nilsson 2009-09-23 13:21:57 +02:00
parent 62f589c5e3
commit 24924ece44
1 changed files with 8 additions and 29 deletions

View File

@ -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
__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
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
__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 = .;