Skip to content

Commit eb121d1

Browse files
Tim Abbotttorvalds
authored andcommitted
h8300: Cleanup linker script using new linker script macros.
Signed-off-by: Tim Abbott <tabbott@ksplice.com> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 5d150a9 commit eb121d1

1 file changed

Lines changed: 7 additions & 18 deletions

File tree

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

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#define VMLINUX_SYMBOL(_sym_) _##_sym_
22
#include <asm-generic/vmlinux.lds.h>
3+
#include <asm/page.h>
34

45
/* target memory map */
56
#ifdef CONFIG_H8300H_GENERIC
@@ -79,11 +80,8 @@ SECTIONS
7980
SCHED_TEXT
8081
LOCK_TEXT
8182
__etext = . ;
82-
. = ALIGN(16); /* Exception table */
83-
___start___ex_table = .;
84-
*(__ex_table)
85-
___stop___ex_table = .;
8683
}
84+
EXCEPTION_TABLE(16)
8785

8886
RODATA
8987
#if defined(CONFIG_ROMKERNEL)
@@ -100,8 +98,7 @@ SECTIONS
10098
__sdata = . ;
10199
___data_start = . ;
102100

103-
. = ALIGN(0x2000) ;
104-
*(.data.init_task)
101+
INIT_TASK_DATA(0x2000)
105102
. = ALIGN(0x4) ;
106103
DATA_DATA
107104
. = ALIGN(0x4) ;
@@ -114,24 +111,16 @@ SECTIONS
114111
__einittext = .;
115112
INIT_DATA
116113
. = ALIGN(0x4) ;
114+
INIT_SETUP(0x4)
117115
___setup_start = .;
118116
*(.init.setup)
119117
. = ALIGN(0x4) ;
120118
___setup_end = .;
121-
___initcall_start = .;
122-
INITCALLS
123-
___initcall_end = .;
124-
___con_initcall_start = .;
125-
*(.con_initcall.init)
126-
___con_initcall_end = .;
119+
INIT_CALLS
120+
CON_INITCALL
127121
EXIT_TEXT
128122
EXIT_DATA
129-
#if defined(CONFIG_BLK_DEV_INITRD)
130-
. = ALIGN(4);
131-
___initramfs_start = .;
132-
*(.init.ramfs)
133-
___initramfs_end = .;
134-
#endif
123+
INIT_RAM_FS
135124
. = ALIGN(0x4) ;
136125
___init_end = .;
137126
__edata = . ;

0 commit comments

Comments
 (0)