Skip to content

Commit 24924ec

Browse files
committed
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>
1 parent 62f589c commit 24924ec

1 file changed

Lines changed: 8 additions & 29 deletions

File tree

‎arch/cris/kernel/vmlinux.lds.S‎

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ SECTIONS
5151
_etext = . ; /* End of text section. */
5252
__etext = .;
5353

54-
. = ALIGN(4); /* Exception table. */
55-
__start___ex_table = .;
56-
__ex_table : { *(__ex_table) }
57-
__stop___ex_table = .;
54+
EXCEPTION_TABLE(4)
5855

5956
RODATA
6057

@@ -67,36 +64,24 @@ SECTIONS
6764
__edata = . ; /* End of data section. */
6865
_edata = . ;
6966

70-
. = ALIGN(PAGE_SIZE); /* init_task and stack, must be aligned. */
71-
.data.init_task : { *(.data.init_task) }
67+
INIT_TASK_DATA_SECTION(PAGE_SIZE)
7268

7369
. = ALIGN(PAGE_SIZE); /* Init code and data. */
7470
__init_begin = .;
75-
.init.text : {
76-
_sinittext = .;
77-
INIT_TEXT
78-
_einittext = .;
79-
}
71+
INIT_TEXT_SECTION(PAGE_SIZE)
8072
.init.data : { INIT_DATA }
81-
. = ALIGN(16);
82-
__setup_start = .;
83-
.init.setup : { *(.init.setup) }
84-
__setup_end = .;
73+
.init.setup : { INIT_SETUP(16) }
8574
#ifdef CONFIG_ETRAX_ARCH_V32
8675
__start___param = .;
8776
__param : { *(__param) }
8877
__stop___param = .;
8978
#endif
9079
.initcall.init : {
91-
__initcall_start = .;
92-
INITCALLS
93-
__initcall_end = .;
80+
INIT_CALLS
9481
}
9582

9683
.con_initcall.init : {
97-
__con_initcall_start = .;
98-
*(.con_initcall.init)
99-
__con_initcall_end = .;
84+
CON_INITCALL
10085
}
10186
SECURITY_INIT
10287

@@ -114,9 +99,7 @@ SECTIONS
11499
PERCPU(PAGE_SIZE)
115100

116101
.init.ramfs : {
117-
__initramfs_start = .;
118-
*(.init.ramfs)
119-
__initramfs_end = .;
102+
INIT_RAM_FS
120103
}
121104
#endif
122105

@@ -130,11 +113,7 @@ SECTIONS
130113
__init_end = .;
131114

132115
__data_end = . ; /* Move to _edata ? */
133-
__bss_start = .; /* BSS. */
134-
.bss : {
135-
*(COMMON)
136-
*(.bss)
137-
}
116+
BSS_SECTION(0, 0, 0)
138117

139118
. = ALIGN (0x20);
140119
_end = .;

0 commit comments

Comments
 (0)