blob: a5e4ed9baec8462d0a7a1d49f402725421d23f67 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef LOAD_OFFSET
2#define LOAD_OFFSET 0
3#endif
4
5#ifndef VMLINUX_SYMBOL
6#define VMLINUX_SYMBOL(_sym_) _sym_
7#endif
8
Sam Ravnborg6d30e3a2005-07-14 20:15:44 +00009/* Align . to a 8 byte boundary equals to maximum function alignment. */
10#define ALIGN_FUNCTION() . = ALIGN(8)
11
Sam Ravnborgeb8f6892008-01-20 20:07:28 +010012/* The actual configuration determine if the init/exit sections
13 * are handled as text/data or they can be discarded (which
14 * often happens at runtime)
15 */
16#ifdef CONFIG_HOTPLUG
17#define DEV_KEEP(sec) *(.dev##sec)
18#define DEV_DISCARD(sec)
19#else
20#define DEV_KEEP(sec)
21#define DEV_DISCARD(sec) *(.dev##sec)
22#endif
23
24#ifdef CONFIG_HOTPLUG_CPU
25#define CPU_KEEP(sec) *(.cpu##sec)
26#define CPU_DISCARD(sec)
27#else
28#define CPU_KEEP(sec)
29#define CPU_DISCARD(sec) *(.cpu##sec)
30#endif
31
Adrian Bunk1a3fb6d2008-01-24 22:20:18 +010032#if defined(CONFIG_MEMORY_HOTPLUG)
Sam Ravnborgeb8f6892008-01-20 20:07:28 +010033#define MEM_KEEP(sec) *(.mem##sec)
34#define MEM_DISCARD(sec)
35#else
36#define MEM_KEEP(sec)
37#define MEM_DISCARD(sec) *(.mem##sec)
38#endif
39
Steven Rostedt8da38212008-08-14 15:45:07 -040040#ifdef CONFIG_FTRACE_MCOUNT_RECORD
41#define MCOUNT_REC() VMLINUX_SYMBOL(__start_mcount_loc) = .; \
42 *(__mcount_loc) \
43 VMLINUX_SYMBOL(__stop_mcount_loc) = .;
44#else
45#define MCOUNT_REC()
46#endif
Sam Ravnborgeb8f6892008-01-20 20:07:28 +010047
Steven Rostedt2ed84ee2008-11-12 15:24:24 -050048#ifdef CONFIG_TRACE_BRANCH_PROFILING
Steven Rostedt1f0d69a2008-11-12 00:14:39 -050049#define LIKELY_PROFILE() VMLINUX_SYMBOL(__start_likely_profile) = .; \
50 *(_ftrace_likely) \
51 VMLINUX_SYMBOL(__stop_likely_profile) = .; \
52 VMLINUX_SYMBOL(__start_unlikely_profile) = .; \
53 *(_ftrace_unlikely) \
54 VMLINUX_SYMBOL(__stop_unlikely_profile) = .;
55#else
56#define LIKELY_PROFILE()
57#endif
58
Sam Ravnborgca967252007-05-17 13:38:44 +020059/* .data section */
60#define DATA_DATA \
Sam Ravnborg0e0d3142007-05-17 20:14:48 +020061 *(.data) \
Mathieu Desnoyers8256e472007-10-18 23:41:06 -070062 *(.data.init.refok) \
Sam Ravnborg312b1482008-01-28 20:21:15 +010063 *(.ref.data) \
Sam Ravnborgeb8f6892008-01-20 20:07:28 +010064 DEV_KEEP(init.data) \
65 DEV_KEEP(exit.data) \
66 CPU_KEEP(init.data) \
67 CPU_KEEP(exit.data) \
68 MEM_KEEP(init.data) \
69 MEM_KEEP(exit.data) \
Mathieu Desnoyers8256e472007-10-18 23:41:06 -070070 . = ALIGN(8); \
71 VMLINUX_SYMBOL(__start___markers) = .; \
72 *(__markers) \
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -040073 VMLINUX_SYMBOL(__stop___markers) = .; \
74 VMLINUX_SYMBOL(__start___tracepoints) = .; \
75 *(__tracepoints) \
Steven Rostedt1f0d69a2008-11-12 00:14:39 -050076 VMLINUX_SYMBOL(__stop___tracepoints) = .; \
77 LIKELY_PROFILE()
Sam Ravnborgca967252007-05-17 13:38:44 +020078
Sam Ravnborg4096b462007-05-29 21:29:00 +020079#define RO_DATA(align) \
80 . = ALIGN((align)); \
Linus Torvalds1da177e2005-04-16 15:20:36 -070081 .rodata : AT(ADDR(.rodata) - LOAD_OFFSET) { \
Vivek Goyal65695802006-12-07 02:14:03 +010082 VMLINUX_SYMBOL(__start_rodata) = .; \
Linus Torvalds1da177e2005-04-16 15:20:36 -070083 *(.rodata) *(.rodata.*) \
84 *(__vermagic) /* Kernel version magic */ \
Mathieu Desnoyers8256e472007-10-18 23:41:06 -070085 *(__markers_strings) /* Markers: strings */ \
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -040086 *(__tracepoints_strings)/* Tracepoints: strings */ \
Linus Torvalds1da177e2005-04-16 15:20:36 -070087 } \
88 \
89 .rodata1 : AT(ADDR(.rodata1) - LOAD_OFFSET) { \
90 *(.rodata1) \
91 } \
92 \
Jan Beulich6360b1f2008-05-12 15:44:41 +020093 BUG_TABLE \
94 \
Linus Torvalds1da177e2005-04-16 15:20:36 -070095 /* PCI quirks */ \
96 .pci_fixup : AT(ADDR(.pci_fixup) - LOAD_OFFSET) { \
97 VMLINUX_SYMBOL(__start_pci_fixups_early) = .; \
98 *(.pci_fixup_early) \
99 VMLINUX_SYMBOL(__end_pci_fixups_early) = .; \
100 VMLINUX_SYMBOL(__start_pci_fixups_header) = .; \
101 *(.pci_fixup_header) \
102 VMLINUX_SYMBOL(__end_pci_fixups_header) = .; \
103 VMLINUX_SYMBOL(__start_pci_fixups_final) = .; \
104 *(.pci_fixup_final) \
105 VMLINUX_SYMBOL(__end_pci_fixups_final) = .; \
106 VMLINUX_SYMBOL(__start_pci_fixups_enable) = .; \
107 *(.pci_fixup_enable) \
108 VMLINUX_SYMBOL(__end_pci_fixups_enable) = .; \
Alan Cox1597cac2006-12-04 15:14:45 -0800109 VMLINUX_SYMBOL(__start_pci_fixups_resume) = .; \
110 *(.pci_fixup_resume) \
111 VMLINUX_SYMBOL(__end_pci_fixups_resume) = .; \
Rafael J. Wysockie1a2a512008-05-15 21:51:31 +0200112 VMLINUX_SYMBOL(__start_pci_fixups_resume_early) = .; \
113 *(.pci_fixup_resume_early) \
114 VMLINUX_SYMBOL(__end_pci_fixups_resume_early) = .; \
115 VMLINUX_SYMBOL(__start_pci_fixups_suspend) = .; \
116 *(.pci_fixup_suspend) \
117 VMLINUX_SYMBOL(__end_pci_fixups_suspend) = .; \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700118 } \
119 \
David Woodhouse5658c762008-05-23 13:52:42 +0100120 /* Built-in firmware blobs */ \
121 .builtin_fw : AT(ADDR(.builtin_fw) - LOAD_OFFSET) { \
122 VMLINUX_SYMBOL(__start_builtin_fw) = .; \
123 *(.builtin_fw) \
124 VMLINUX_SYMBOL(__end_builtin_fw) = .; \
125 } \
126 \
Matt Porter394b7012005-11-07 01:00:15 -0800127 /* RapidIO route ops */ \
128 .rio_route : AT(ADDR(.rio_route) - LOAD_OFFSET) { \
129 VMLINUX_SYMBOL(__start_rio_route_ops) = .; \
130 *(.rio_route_ops) \
131 VMLINUX_SYMBOL(__end_rio_route_ops) = .; \
132 } \
133 \
Jan Beulich63687a52008-05-12 15:44:41 +0200134 TRACEDATA \
135 \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700136 /* Kernel symbol table: Normal symbols */ \
137 __ksymtab : AT(ADDR(__ksymtab) - LOAD_OFFSET) { \
138 VMLINUX_SYMBOL(__start___ksymtab) = .; \
139 *(__ksymtab) \
140 VMLINUX_SYMBOL(__stop___ksymtab) = .; \
141 } \
142 \
143 /* Kernel symbol table: GPL-only symbols */ \
144 __ksymtab_gpl : AT(ADDR(__ksymtab_gpl) - LOAD_OFFSET) { \
145 VMLINUX_SYMBOL(__start___ksymtab_gpl) = .; \
146 *(__ksymtab_gpl) \
147 VMLINUX_SYMBOL(__stop___ksymtab_gpl) = .; \
148 } \
149 \
Arjan van de Venf71d20e2006-06-28 04:26:45 -0700150 /* Kernel symbol table: Normal unused symbols */ \
151 __ksymtab_unused : AT(ADDR(__ksymtab_unused) - LOAD_OFFSET) { \
152 VMLINUX_SYMBOL(__start___ksymtab_unused) = .; \
153 *(__ksymtab_unused) \
154 VMLINUX_SYMBOL(__stop___ksymtab_unused) = .; \
155 } \
156 \
157 /* Kernel symbol table: GPL-only unused symbols */ \
158 __ksymtab_unused_gpl : AT(ADDR(__ksymtab_unused_gpl) - LOAD_OFFSET) { \
159 VMLINUX_SYMBOL(__start___ksymtab_unused_gpl) = .; \
160 *(__ksymtab_unused_gpl) \
161 VMLINUX_SYMBOL(__stop___ksymtab_unused_gpl) = .; \
162 } \
163 \
Greg Kroah-Hartman9f28bb72006-03-20 13:17:13 -0800164 /* Kernel symbol table: GPL-future-only symbols */ \
165 __ksymtab_gpl_future : AT(ADDR(__ksymtab_gpl_future) - LOAD_OFFSET) { \
166 VMLINUX_SYMBOL(__start___ksymtab_gpl_future) = .; \
167 *(__ksymtab_gpl_future) \
168 VMLINUX_SYMBOL(__stop___ksymtab_gpl_future) = .; \
169 } \
170 \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700171 /* Kernel symbol table: Normal symbols */ \
172 __kcrctab : AT(ADDR(__kcrctab) - LOAD_OFFSET) { \
173 VMLINUX_SYMBOL(__start___kcrctab) = .; \
174 *(__kcrctab) \
175 VMLINUX_SYMBOL(__stop___kcrctab) = .; \
176 } \
177 \
178 /* Kernel symbol table: GPL-only symbols */ \
179 __kcrctab_gpl : AT(ADDR(__kcrctab_gpl) - LOAD_OFFSET) { \
180 VMLINUX_SYMBOL(__start___kcrctab_gpl) = .; \
181 *(__kcrctab_gpl) \
182 VMLINUX_SYMBOL(__stop___kcrctab_gpl) = .; \
183 } \
184 \
Arjan van de Venf71d20e2006-06-28 04:26:45 -0700185 /* Kernel symbol table: Normal unused symbols */ \
186 __kcrctab_unused : AT(ADDR(__kcrctab_unused) - LOAD_OFFSET) { \
187 VMLINUX_SYMBOL(__start___kcrctab_unused) = .; \
188 *(__kcrctab_unused) \
189 VMLINUX_SYMBOL(__stop___kcrctab_unused) = .; \
190 } \
191 \
192 /* Kernel symbol table: GPL-only unused symbols */ \
193 __kcrctab_unused_gpl : AT(ADDR(__kcrctab_unused_gpl) - LOAD_OFFSET) { \
194 VMLINUX_SYMBOL(__start___kcrctab_unused_gpl) = .; \
195 *(__kcrctab_unused_gpl) \
196 VMLINUX_SYMBOL(__stop___kcrctab_unused_gpl) = .; \
197 } \
198 \
Greg Kroah-Hartman9f28bb72006-03-20 13:17:13 -0800199 /* Kernel symbol table: GPL-future-only symbols */ \
200 __kcrctab_gpl_future : AT(ADDR(__kcrctab_gpl_future) - LOAD_OFFSET) { \
201 VMLINUX_SYMBOL(__start___kcrctab_gpl_future) = .; \
202 *(__kcrctab_gpl_future) \
203 VMLINUX_SYMBOL(__stop___kcrctab_gpl_future) = .; \
204 } \
205 \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700206 /* Kernel symbol table: strings */ \
207 __ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET) { \
208 *(__ksymtab_strings) \
209 } \
210 \
Sam Ravnborgeb8f6892008-01-20 20:07:28 +0100211 /* __*init sections */ \
212 __init_rodata : AT(ADDR(__init_rodata) - LOAD_OFFSET) { \
Sam Ravnborg312b1482008-01-28 20:21:15 +0100213 *(.ref.rodata) \
Steven Rostedt8da38212008-08-14 15:45:07 -0400214 MCOUNT_REC() \
Sam Ravnborgeb8f6892008-01-20 20:07:28 +0100215 DEV_KEEP(init.rodata) \
216 DEV_KEEP(exit.rodata) \
217 CPU_KEEP(init.rodata) \
218 CPU_KEEP(exit.rodata) \
219 MEM_KEEP(init.rodata) \
220 MEM_KEEP(exit.rodata) \
221 } \
222 \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700223 /* Built-in module parameters. */ \
224 __param : AT(ADDR(__param) - LOAD_OFFSET) { \
225 VMLINUX_SYMBOL(__start___param) = .; \
226 *(__param) \
227 VMLINUX_SYMBOL(__stop___param) = .; \
Arjan van de Venedeed302008-01-30 13:34:08 +0100228 . = ALIGN((align)); \
Vivek Goyal65695802006-12-07 02:14:03 +0100229 VMLINUX_SYMBOL(__end_rodata) = .; \
Marcelo Tosatti7583ddf2006-09-27 01:51:02 -0700230 } \
Sam Ravnborg4096b462007-05-29 21:29:00 +0200231 . = ALIGN((align));
232
233/* RODATA provided for backward compatibility.
234 * All archs are supposed to use RO_DATA() */
235#define RODATA RO_DATA(4096)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700236
237#define SECURITY_INIT \
Eric W. Biederman60bad7f2005-06-25 14:57:46 -0700238 .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700239 VMLINUX_SYMBOL(__security_initcall_start) = .; \
240 *(.security_initcall.init) \
241 VMLINUX_SYMBOL(__security_initcall_end) = .; \
242 }
243
Sam Ravnborg76647092007-05-13 00:31:33 +0200244/* .text section. Map to function alignment to avoid address changes
245 * during second ld run in second ld pass when generating System.map */
246#define TEXT_TEXT \
247 ALIGN_FUNCTION(); \
Jan Beulichfb5e2b32008-06-18 12:36:01 +0100248 *(.text.hot) \
Sam Ravnborg0e0d3142007-05-17 20:14:48 +0200249 *(.text) \
Sam Ravnborg312b1482008-01-28 20:21:15 +0100250 *(.ref.text) \
Al Viro23ec23c2007-10-13 08:40:24 +0100251 *(.text.init.refok) \
Sam Ravnborgeb8f6892008-01-20 20:07:28 +0100252 *(.exit.text.refok) \
253 DEV_KEEP(init.text) \
254 DEV_KEEP(exit.text) \
255 CPU_KEEP(init.text) \
256 CPU_KEEP(exit.text) \
257 MEM_KEEP(init.text) \
Jan Beulichfb5e2b32008-06-18 12:36:01 +0100258 MEM_KEEP(exit.text) \
259 *(.text.unlikely)
Sam Ravnborgeb8f6892008-01-20 20:07:28 +0100260
Sam Ravnborg76647092007-05-13 00:31:33 +0200261
Sam Ravnborg6d30e3a2005-07-14 20:15:44 +0000262/* sched.text is aling to function alignment to secure we have same
263 * address even at second ld pass when generating System.map */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700264#define SCHED_TEXT \
Sam Ravnborg6d30e3a2005-07-14 20:15:44 +0000265 ALIGN_FUNCTION(); \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700266 VMLINUX_SYMBOL(__sched_text_start) = .; \
267 *(.sched.text) \
268 VMLINUX_SYMBOL(__sched_text_end) = .;
269
Sam Ravnborg6d30e3a2005-07-14 20:15:44 +0000270/* spinlock.text is aling to function alignment to secure we have same
271 * address even at second ld pass when generating System.map */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700272#define LOCK_TEXT \
Sam Ravnborg6d30e3a2005-07-14 20:15:44 +0000273 ALIGN_FUNCTION(); \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700274 VMLINUX_SYMBOL(__lock_text_start) = .; \
275 *(.spinlock.text) \
276 VMLINUX_SYMBOL(__lock_text_end) = .;
Prasanna S Panchamukhid0aaff92005-09-06 15:19:26 -0700277
278#define KPROBES_TEXT \
279 ALIGN_FUNCTION(); \
280 VMLINUX_SYMBOL(__kprobes_text_start) = .; \
281 *(.kprobes.text) \
282 VMLINUX_SYMBOL(__kprobes_text_end) = .;
Paolo 'Blaisorblade' Giarrussoa7d0c212005-09-10 19:44:54 +0200283
Sam Ravnborg37c514e2008-02-19 21:00:18 +0100284/* Section used for early init (in .S files) */
285#define HEAD_TEXT *(.head.text)
286
Sam Ravnborg01ba2bd2008-01-20 14:15:03 +0100287/* init and exit section handling */
Sam Ravnborgeb8f6892008-01-20 20:07:28 +0100288#define INIT_DATA \
289 *(.init.data) \
290 DEV_DISCARD(init.data) \
291 DEV_DISCARD(init.rodata) \
292 CPU_DISCARD(init.data) \
293 CPU_DISCARD(init.rodata) \
294 MEM_DISCARD(init.data) \
Jason Baron346e15b2008-08-12 16:46:19 -0400295 MEM_DISCARD(init.rodata) \
296 /* implement dynamic printk debug */ \
297 VMLINUX_SYMBOL(__start___verbose_strings) = .; \
298 *(__verbose_strings) \
299 VMLINUX_SYMBOL(__stop___verbose_strings) = .; \
300 . = ALIGN(8); \
301 VMLINUX_SYMBOL(__start___verbose) = .; \
302 *(__verbose) \
303 VMLINUX_SYMBOL(__stop___verbose) = .;
Sam Ravnborg01ba2bd2008-01-20 14:15:03 +0100304
Sam Ravnborgeb8f6892008-01-20 20:07:28 +0100305#define INIT_TEXT \
306 *(.init.text) \
307 DEV_DISCARD(init.text) \
308 CPU_DISCARD(init.text) \
309 MEM_DISCARD(init.text)
310
311#define EXIT_DATA \
312 *(.exit.data) \
313 DEV_DISCARD(exit.data) \
314 DEV_DISCARD(exit.rodata) \
315 CPU_DISCARD(exit.data) \
316 CPU_DISCARD(exit.rodata) \
317 MEM_DISCARD(exit.data) \
318 MEM_DISCARD(exit.rodata)
319
320#define EXIT_TEXT \
321 *(.exit.text) \
322 DEV_DISCARD(exit.text) \
323 CPU_DISCARD(exit.text) \
324 MEM_DISCARD(exit.text)
Sam Ravnborg01ba2bd2008-01-20 14:15:03 +0100325
Paolo 'Blaisorblade' Giarrussoa7d0c212005-09-10 19:44:54 +0200326 /* DWARF debug sections.
327 Symbols in the DWARF debugging sections are relative to
328 the beginning of the section so we begin them at 0. */
329#define DWARF_DEBUG \
330 /* DWARF 1 */ \
331 .debug 0 : { *(.debug) } \
332 .line 0 : { *(.line) } \
333 /* GNU DWARF 1 extensions */ \
334 .debug_srcinfo 0 : { *(.debug_srcinfo) } \
335 .debug_sfnames 0 : { *(.debug_sfnames) } \
336 /* DWARF 1.1 and DWARF 2 */ \
337 .debug_aranges 0 : { *(.debug_aranges) } \
338 .debug_pubnames 0 : { *(.debug_pubnames) } \
339 /* DWARF 2 */ \
340 .debug_info 0 : { *(.debug_info \
341 .gnu.linkonce.wi.*) } \
342 .debug_abbrev 0 : { *(.debug_abbrev) } \
343 .debug_line 0 : { *(.debug_line) } \
344 .debug_frame 0 : { *(.debug_frame) } \
345 .debug_str 0 : { *(.debug_str) } \
346 .debug_loc 0 : { *(.debug_loc) } \
347 .debug_macinfo 0 : { *(.debug_macinfo) } \
348 /* SGI/MIPS DWARF 2 extensions */ \
349 .debug_weaknames 0 : { *(.debug_weaknames) } \
350 .debug_funcnames 0 : { *(.debug_funcnames) } \
351 .debug_typenames 0 : { *(.debug_typenames) } \
352 .debug_varnames 0 : { *(.debug_varnames) } \
353
354 /* Stabs debugging sections. */
355#define STABS_DEBUG \
356 .stab 0 : { *(.stab) } \
357 .stabstr 0 : { *(.stabstr) } \
358 .stab.excl 0 : { *(.stab.excl) } \
359 .stab.exclstr 0 : { *(.stab.exclstr) } \
360 .stab.index 0 : { *(.stab.index) } \
361 .stab.indexstr 0 : { *(.stab.indexstr) } \
362 .comment 0 : { *(.comment) }
Jeremy Fitzhardinge9c9b8b32006-09-25 23:32:26 -0700363
Jan Beulich6360b1f2008-05-12 15:44:41 +0200364#ifdef CONFIG_GENERIC_BUG
Jeremy Fitzhardinge7664c5a2006-12-08 02:36:19 -0800365#define BUG_TABLE \
366 . = ALIGN(8); \
367 __bug_table : AT(ADDR(__bug_table) - LOAD_OFFSET) { \
Yoshinori Satoc6de00262008-07-31 00:07:29 -0700368 VMLINUX_SYMBOL(__start___bug_table) = .; \
Jeremy Fitzhardinge7664c5a2006-12-08 02:36:19 -0800369 *(__bug_table) \
Yoshinori Satoc6de00262008-07-31 00:07:29 -0700370 VMLINUX_SYMBOL(__stop___bug_table) = .; \
Jeremy Fitzhardinge7664c5a2006-12-08 02:36:19 -0800371 }
Jan Beulich6360b1f2008-05-12 15:44:41 +0200372#else
373#define BUG_TABLE
374#endif
Jeremy Fitzhardinge7664c5a2006-12-08 02:36:19 -0800375
Jan Beulich63687a52008-05-12 15:44:41 +0200376#ifdef CONFIG_PM_TRACE
377#define TRACEDATA \
378 . = ALIGN(4); \
379 .tracedata : AT(ADDR(.tracedata) - LOAD_OFFSET) { \
Yoshinori Satoc6de00262008-07-31 00:07:29 -0700380 VMLINUX_SYMBOL(__tracedata_start) = .; \
Jan Beulich63687a52008-05-12 15:44:41 +0200381 *(.tracedata) \
Yoshinori Satoc6de00262008-07-31 00:07:29 -0700382 VMLINUX_SYMBOL(__tracedata_end) = .; \
Jan Beulich63687a52008-05-12 15:44:41 +0200383 }
384#else
385#define TRACEDATA
386#endif
387
Jeremy Fitzhardinge9c9b8b32006-09-25 23:32:26 -0700388#define NOTES \
Roland McGrathcbe87122007-07-19 01:48:36 -0700389 .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \
390 VMLINUX_SYMBOL(__start_notes) = .; \
391 *(.note.*) \
392 VMLINUX_SYMBOL(__stop_notes) = .; \
393 }
Andrew Morton61ce1ef2006-10-27 11:41:44 -0700394
395#define INITCALLS \
Eduard - Gabriel Munteanuc2147a52008-07-25 19:45:11 -0700396 *(.initcallearly.init) \
Yoshinori Satoc6de00262008-07-31 00:07:29 -0700397 VMLINUX_SYMBOL(__early_initcall_end) = .; \
Linus Torvaldsb3438f82006-11-20 11:47:18 -0800398 *(.initcall0.init) \
399 *(.initcall0s.init) \
Andrew Morton61ce1ef2006-10-27 11:41:44 -0700400 *(.initcall1.init) \
Andrew Morton735a7ff2006-10-27 11:42:37 -0700401 *(.initcall1s.init) \
Andrew Morton61ce1ef2006-10-27 11:41:44 -0700402 *(.initcall2.init) \
Andrew Morton735a7ff2006-10-27 11:42:37 -0700403 *(.initcall2s.init) \
Andrew Morton61ce1ef2006-10-27 11:41:44 -0700404 *(.initcall3.init) \
Andrew Morton735a7ff2006-10-27 11:42:37 -0700405 *(.initcall3s.init) \
Andrew Morton61ce1ef2006-10-27 11:41:44 -0700406 *(.initcall4.init) \
Andrew Morton735a7ff2006-10-27 11:42:37 -0700407 *(.initcall4s.init) \
Andrew Morton61ce1ef2006-10-27 11:41:44 -0700408 *(.initcall5.init) \
Andrew Morton735a7ff2006-10-27 11:42:37 -0700409 *(.initcall5s.init) \
Linus Torvalds8d610dd2006-12-11 12:12:04 -0800410 *(.initcallrootfs.init) \
Andrew Morton61ce1ef2006-10-27 11:41:44 -0700411 *(.initcall6.init) \
Andrew Morton735a7ff2006-10-27 11:42:37 -0700412 *(.initcall6s.init) \
413 *(.initcall7.init) \
414 *(.initcall7s.init)
Andrew Morton61ce1ef2006-10-27 11:41:44 -0700415
Fenghua Yu5fb7dc32007-07-19 01:48:12 -0700416#define PERCPU(align) \
417 . = ALIGN(align); \
Yoshinori Satoc6de00262008-07-31 00:07:29 -0700418 VMLINUX_SYMBOL(__per_cpu_start) = .; \
Fenghua Yu5fb7dc32007-07-19 01:48:12 -0700419 .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) { \
Eric Dumazet63cc8c72008-05-12 15:44:40 +0200420 *(.data.percpu.page_aligned) \
Fenghua Yu5fb7dc32007-07-19 01:48:12 -0700421 *(.data.percpu) \
422 *(.data.percpu.shared_aligned) \
423 } \
Yoshinori Satoc6de00262008-07-31 00:07:29 -0700424 VMLINUX_SYMBOL(__per_cpu_end) = .;