]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - arch/h8300/kernel/vmlinux.lds.S
[PATCH] vmlinux.lds: consolidate initcall sections
[mirror_ubuntu-jammy-kernel.git] / arch / h8300 / kernel / vmlinux.lds.S
CommitLineData
1da177e4
LT
1#define VMLINUX_SYMBOL(_sym_) _##_sym_
2#include <asm-generic/vmlinux.lds.h>
1da177e4
LT
3
4/* target memory map */
5#ifdef CONFIG_H8300H_GENERIC
6#define ROMTOP 0x000000
7#define ROMSIZE 0x400000
8#define RAMTOP 0x400000
9#define RAMSIZE 0x400000
10#endif
11
12#ifdef CONFIG_H8300H_AKI3068NET
13#define ROMTOP 0x000000
14#define ROMSIZE 0x080000
15#define RAMTOP 0x400000
16#define RAMSIZE 0x200000
17#endif
18
19#ifdef CONFIG_H8300H_H8MAX
20#define ROMTOP 0x000000
21#define ROMSIZE 0x080000
22#define RAMTOP 0x400000
23#define RAMSIZE 0x200000
24#endif
25
26#ifdef CONFIG_H8300H_SIM
27#define ROMTOP 0x000000
28#define ROMSIZE 0x400000
29#define RAMTOP 0x400000
30#define RAMSIZE 0x400000
31#endif
32
33#ifdef CONFIG_H8S_SIM
34#define ROMTOP 0x000000
35#define ROMSIZE 0x400000
36#define RAMTOP 0x400000
37#define RAMSIZE 0x800000
38#endif
39
40#ifdef CONFIG_H8S_EDOSK2674
41#define ROMTOP 0x000000
42#define ROMSIZE 0x400000
43#define RAMTOP 0x400000
44#define RAMSIZE 0x800000
45#endif
46
47#if defined(CONFIG_H8300H_SIM) || defined(CONFIG_H8S_SIM)
48INPUT(romfs.o)
49#endif
50
51_jiffies = _jiffies_64 + 4;
52
53ENTRY(__start)
54
55SECTIONS
56{
57#if defined(CONFIG_ROMKERNEL)
58 . = ROMTOP;
59 .vectors :
60 {
61 __vector = . ;
62 *(.vectors*)
63 }
64#else
65 . = RAMTOP;
66 .bootvec :
67 {
68 *(.bootvec)
69 }
70#endif
71 .text :
72 {
73#if defined(CONFIG_ROMKERNEL)
74 *(.int_redirect)
75#endif
76 __stext = . ;
77 *(.text)
78 SCHED_TEXT
79 LOCK_TEXT
80 __etext = . ;
81 . = ALIGN(16); /* Exception table */
82 ___start___ex_table = .;
83 *(__ex_table)
84 ___stop___ex_table = .;
85 }
86
87 RODATA
88#if defined(CONFIG_ROMKERNEL)
89 SECURITY_INIT
90#endif
91 ROEND = .;
92#if defined(CONFIG_ROMKERNEL)
93 . = RAMTOP;
94 .data : AT(ROEND)
95#else
96 .data :
97#endif
98 {
99 __sdata = . ;
100 ___data_start = . ;
101
102 . = ALIGN(0x2000) ;
103 *(.data.init_task)
104 . = ALIGN(0x4) ;
105 *(.data)
106 . = ALIGN(0x4) ;
107 *(.data.*)
108
109 . = ALIGN(0x4) ;
110 ___init_begin = .;
111 __sinittext = .;
112 *(.init.text)
113 __einittext = .;
114 *(.init.data)
115 . = ALIGN(0x4) ;
116 ___setup_start = .;
117 *(.init.setup)
118 . = ALIGN(0x4) ;
119 ___setup_end = .;
120 ___initcall_start = .;
61ce1efe 121 INITCALLS
1da177e4
LT
122 ___initcall_end = .;
123 ___con_initcall_start = .;
124 *(.con_initcall.init)
125 ___con_initcall_end = .;
126 *(.exit.text)
127 *(.exit.data)
128 . = ALIGN(4);
129 ___initramfs_start = .;
130 *(.init.ramfs)
131 ___initramfs_end = .;
132 . = ALIGN(0x4) ;
133 ___init_end = .;
134 __edata = . ;
135 }
136#if defined(CONFIG_RAMKERNEL)
137 SECURITY_INIT
138#endif
139 __begin_data = LOADADDR(.data);
140 .bss :
141 {
142 . = ALIGN(0x4) ;
143 __sbss = . ;
144 *(.bss*)
145 . = ALIGN(0x4) ;
146 *(COMMON)
147 . = ALIGN(0x4) ;
148 __ebss = . ;
149 __end = . ;
150 __ramstart = .;
151 }
152 /DISCARD/ : {
153 *(.exitcall.exit)
154 }
155 .romfs :
156 {
157 *(.romfs*)
158 }
159 . = RAMTOP+RAMSIZE;
160 .dummy :
161 {
162 COMMAND_START = . - 0x200 ;
163 __ramend = . ;
164 }
165}