Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #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 Ravnborg | 6d30e3a | 2005-07-14 20:15:44 +0000 | [diff] [blame] | 9 | /* Align . to a 8 byte boundary equals to maximum function alignment. */ |
| 10 | #define ALIGN_FUNCTION() . = ALIGN(8) |
| 11 | |
Sam Ravnborg | eb8f689 | 2008-01-20 20:07:28 +0100 | [diff] [blame] | 12 | /* 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 Bunk | 1a3fb6d | 2008-01-24 22:20:18 +0100 | [diff] [blame] | 32 | #if defined(CONFIG_MEMORY_HOTPLUG) |
Sam Ravnborg | eb8f689 | 2008-01-20 20:07:28 +0100 | [diff] [blame] | 33 | #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 | |
| 40 | |
Sam Ravnborg | ca96725 | 2007-05-17 13:38:44 +0200 | [diff] [blame] | 41 | /* .data section */ |
| 42 | #define DATA_DATA \ |
Sam Ravnborg | 0e0d314 | 2007-05-17 20:14:48 +0200 | [diff] [blame] | 43 | *(.data) \ |
Mathieu Desnoyers | 8256e47 | 2007-10-18 23:41:06 -0700 | [diff] [blame] | 44 | *(.data.init.refok) \ |
Sam Ravnborg | 312b148 | 2008-01-28 20:21:15 +0100 | [diff] [blame] | 45 | *(.ref.data) \ |
Sam Ravnborg | eb8f689 | 2008-01-20 20:07:28 +0100 | [diff] [blame] | 46 | DEV_KEEP(init.data) \ |
| 47 | DEV_KEEP(exit.data) \ |
| 48 | CPU_KEEP(init.data) \ |
| 49 | CPU_KEEP(exit.data) \ |
| 50 | MEM_KEEP(init.data) \ |
| 51 | MEM_KEEP(exit.data) \ |
Mathieu Desnoyers | 8256e47 | 2007-10-18 23:41:06 -0700 | [diff] [blame] | 52 | . = ALIGN(8); \ |
| 53 | VMLINUX_SYMBOL(__start___markers) = .; \ |
| 54 | *(__markers) \ |
| 55 | VMLINUX_SYMBOL(__stop___markers) = .; |
Sam Ravnborg | ca96725 | 2007-05-17 13:38:44 +0200 | [diff] [blame] | 56 | |
Sam Ravnborg | 4096b46 | 2007-05-29 21:29:00 +0200 | [diff] [blame] | 57 | #define RO_DATA(align) \ |
| 58 | . = ALIGN((align)); \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 59 | .rodata : AT(ADDR(.rodata) - LOAD_OFFSET) { \ |
Vivek Goyal | 6569580 | 2006-12-07 02:14:03 +0100 | [diff] [blame] | 60 | VMLINUX_SYMBOL(__start_rodata) = .; \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 61 | *(.rodata) *(.rodata.*) \ |
| 62 | *(__vermagic) /* Kernel version magic */ \ |
Mathieu Desnoyers | 8256e47 | 2007-10-18 23:41:06 -0700 | [diff] [blame] | 63 | *(__markers_strings) /* Markers: strings */ \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 64 | } \ |
| 65 | \ |
| 66 | .rodata1 : AT(ADDR(.rodata1) - LOAD_OFFSET) { \ |
| 67 | *(.rodata1) \ |
| 68 | } \ |
| 69 | \ |
| 70 | /* PCI quirks */ \ |
| 71 | .pci_fixup : AT(ADDR(.pci_fixup) - LOAD_OFFSET) { \ |
| 72 | VMLINUX_SYMBOL(__start_pci_fixups_early) = .; \ |
| 73 | *(.pci_fixup_early) \ |
| 74 | VMLINUX_SYMBOL(__end_pci_fixups_early) = .; \ |
| 75 | VMLINUX_SYMBOL(__start_pci_fixups_header) = .; \ |
| 76 | *(.pci_fixup_header) \ |
| 77 | VMLINUX_SYMBOL(__end_pci_fixups_header) = .; \ |
| 78 | VMLINUX_SYMBOL(__start_pci_fixups_final) = .; \ |
| 79 | *(.pci_fixup_final) \ |
| 80 | VMLINUX_SYMBOL(__end_pci_fixups_final) = .; \ |
| 81 | VMLINUX_SYMBOL(__start_pci_fixups_enable) = .; \ |
| 82 | *(.pci_fixup_enable) \ |
| 83 | VMLINUX_SYMBOL(__end_pci_fixups_enable) = .; \ |
Alan Cox | 1597cac | 2006-12-04 15:14:45 -0800 | [diff] [blame] | 84 | VMLINUX_SYMBOL(__start_pci_fixups_resume) = .; \ |
| 85 | *(.pci_fixup_resume) \ |
| 86 | VMLINUX_SYMBOL(__end_pci_fixups_resume) = .; \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 87 | } \ |
| 88 | \ |
Matt Porter | 394b701 | 2005-11-07 01:00:15 -0800 | [diff] [blame] | 89 | /* RapidIO route ops */ \ |
| 90 | .rio_route : AT(ADDR(.rio_route) - LOAD_OFFSET) { \ |
| 91 | VMLINUX_SYMBOL(__start_rio_route_ops) = .; \ |
| 92 | *(.rio_route_ops) \ |
| 93 | VMLINUX_SYMBOL(__end_rio_route_ops) = .; \ |
| 94 | } \ |
| 95 | \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 96 | /* Kernel symbol table: Normal symbols */ \ |
| 97 | __ksymtab : AT(ADDR(__ksymtab) - LOAD_OFFSET) { \ |
| 98 | VMLINUX_SYMBOL(__start___ksymtab) = .; \ |
| 99 | *(__ksymtab) \ |
| 100 | VMLINUX_SYMBOL(__stop___ksymtab) = .; \ |
| 101 | } \ |
| 102 | \ |
| 103 | /* Kernel symbol table: GPL-only symbols */ \ |
| 104 | __ksymtab_gpl : AT(ADDR(__ksymtab_gpl) - LOAD_OFFSET) { \ |
| 105 | VMLINUX_SYMBOL(__start___ksymtab_gpl) = .; \ |
| 106 | *(__ksymtab_gpl) \ |
| 107 | VMLINUX_SYMBOL(__stop___ksymtab_gpl) = .; \ |
| 108 | } \ |
| 109 | \ |
Arjan van de Ven | f71d20e | 2006-06-28 04:26:45 -0700 | [diff] [blame] | 110 | /* Kernel symbol table: Normal unused symbols */ \ |
| 111 | __ksymtab_unused : AT(ADDR(__ksymtab_unused) - LOAD_OFFSET) { \ |
| 112 | VMLINUX_SYMBOL(__start___ksymtab_unused) = .; \ |
| 113 | *(__ksymtab_unused) \ |
| 114 | VMLINUX_SYMBOL(__stop___ksymtab_unused) = .; \ |
| 115 | } \ |
| 116 | \ |
| 117 | /* Kernel symbol table: GPL-only unused symbols */ \ |
| 118 | __ksymtab_unused_gpl : AT(ADDR(__ksymtab_unused_gpl) - LOAD_OFFSET) { \ |
| 119 | VMLINUX_SYMBOL(__start___ksymtab_unused_gpl) = .; \ |
| 120 | *(__ksymtab_unused_gpl) \ |
| 121 | VMLINUX_SYMBOL(__stop___ksymtab_unused_gpl) = .; \ |
| 122 | } \ |
| 123 | \ |
Greg Kroah-Hartman | 9f28bb7 | 2006-03-20 13:17:13 -0800 | [diff] [blame] | 124 | /* Kernel symbol table: GPL-future-only symbols */ \ |
| 125 | __ksymtab_gpl_future : AT(ADDR(__ksymtab_gpl_future) - LOAD_OFFSET) { \ |
| 126 | VMLINUX_SYMBOL(__start___ksymtab_gpl_future) = .; \ |
| 127 | *(__ksymtab_gpl_future) \ |
| 128 | VMLINUX_SYMBOL(__stop___ksymtab_gpl_future) = .; \ |
| 129 | } \ |
| 130 | \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 131 | /* Kernel symbol table: Normal symbols */ \ |
| 132 | __kcrctab : AT(ADDR(__kcrctab) - LOAD_OFFSET) { \ |
| 133 | VMLINUX_SYMBOL(__start___kcrctab) = .; \ |
| 134 | *(__kcrctab) \ |
| 135 | VMLINUX_SYMBOL(__stop___kcrctab) = .; \ |
| 136 | } \ |
| 137 | \ |
| 138 | /* Kernel symbol table: GPL-only symbols */ \ |
| 139 | __kcrctab_gpl : AT(ADDR(__kcrctab_gpl) - LOAD_OFFSET) { \ |
| 140 | VMLINUX_SYMBOL(__start___kcrctab_gpl) = .; \ |
| 141 | *(__kcrctab_gpl) \ |
| 142 | VMLINUX_SYMBOL(__stop___kcrctab_gpl) = .; \ |
| 143 | } \ |
| 144 | \ |
Arjan van de Ven | f71d20e | 2006-06-28 04:26:45 -0700 | [diff] [blame] | 145 | /* Kernel symbol table: Normal unused symbols */ \ |
| 146 | __kcrctab_unused : AT(ADDR(__kcrctab_unused) - LOAD_OFFSET) { \ |
| 147 | VMLINUX_SYMBOL(__start___kcrctab_unused) = .; \ |
| 148 | *(__kcrctab_unused) \ |
| 149 | VMLINUX_SYMBOL(__stop___kcrctab_unused) = .; \ |
| 150 | } \ |
| 151 | \ |
| 152 | /* Kernel symbol table: GPL-only unused symbols */ \ |
| 153 | __kcrctab_unused_gpl : AT(ADDR(__kcrctab_unused_gpl) - LOAD_OFFSET) { \ |
| 154 | VMLINUX_SYMBOL(__start___kcrctab_unused_gpl) = .; \ |
| 155 | *(__kcrctab_unused_gpl) \ |
| 156 | VMLINUX_SYMBOL(__stop___kcrctab_unused_gpl) = .; \ |
| 157 | } \ |
| 158 | \ |
Greg Kroah-Hartman | 9f28bb7 | 2006-03-20 13:17:13 -0800 | [diff] [blame] | 159 | /* Kernel symbol table: GPL-future-only symbols */ \ |
| 160 | __kcrctab_gpl_future : AT(ADDR(__kcrctab_gpl_future) - LOAD_OFFSET) { \ |
| 161 | VMLINUX_SYMBOL(__start___kcrctab_gpl_future) = .; \ |
| 162 | *(__kcrctab_gpl_future) \ |
| 163 | VMLINUX_SYMBOL(__stop___kcrctab_gpl_future) = .; \ |
| 164 | } \ |
| 165 | \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 166 | /* Kernel symbol table: strings */ \ |
| 167 | __ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET) { \ |
| 168 | *(__ksymtab_strings) \ |
| 169 | } \ |
| 170 | \ |
Sam Ravnborg | eb8f689 | 2008-01-20 20:07:28 +0100 | [diff] [blame] | 171 | /* __*init sections */ \ |
| 172 | __init_rodata : AT(ADDR(__init_rodata) - LOAD_OFFSET) { \ |
Sam Ravnborg | 312b148 | 2008-01-28 20:21:15 +0100 | [diff] [blame] | 173 | *(.ref.rodata) \ |
Sam Ravnborg | eb8f689 | 2008-01-20 20:07:28 +0100 | [diff] [blame] | 174 | DEV_KEEP(init.rodata) \ |
| 175 | DEV_KEEP(exit.rodata) \ |
| 176 | CPU_KEEP(init.rodata) \ |
| 177 | CPU_KEEP(exit.rodata) \ |
| 178 | MEM_KEEP(init.rodata) \ |
| 179 | MEM_KEEP(exit.rodata) \ |
| 180 | } \ |
| 181 | \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 182 | /* Built-in module parameters. */ \ |
| 183 | __param : AT(ADDR(__param) - LOAD_OFFSET) { \ |
| 184 | VMLINUX_SYMBOL(__start___param) = .; \ |
| 185 | *(__param) \ |
| 186 | VMLINUX_SYMBOL(__stop___param) = .; \ |
Arjan van de Ven | edeed30 | 2008-01-30 13:34:08 +0100 | [diff] [blame] | 187 | . = ALIGN((align)); \ |
Vivek Goyal | 6569580 | 2006-12-07 02:14:03 +0100 | [diff] [blame] | 188 | VMLINUX_SYMBOL(__end_rodata) = .; \ |
Marcelo Tosatti | 7583ddf | 2006-09-27 01:51:02 -0700 | [diff] [blame] | 189 | } \ |
Sam Ravnborg | 4096b46 | 2007-05-29 21:29:00 +0200 | [diff] [blame] | 190 | . = ALIGN((align)); |
| 191 | |
| 192 | /* RODATA provided for backward compatibility. |
| 193 | * All archs are supposed to use RO_DATA() */ |
| 194 | #define RODATA RO_DATA(4096) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 195 | |
| 196 | #define SECURITY_INIT \ |
Eric W. Biederman | 60bad7f | 2005-06-25 14:57:46 -0700 | [diff] [blame] | 197 | .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET) { \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 198 | VMLINUX_SYMBOL(__security_initcall_start) = .; \ |
| 199 | *(.security_initcall.init) \ |
| 200 | VMLINUX_SYMBOL(__security_initcall_end) = .; \ |
| 201 | } |
| 202 | |
Sam Ravnborg | 7664709 | 2007-05-13 00:31:33 +0200 | [diff] [blame] | 203 | /* .text section. Map to function alignment to avoid address changes |
| 204 | * during second ld run in second ld pass when generating System.map */ |
| 205 | #define TEXT_TEXT \ |
| 206 | ALIGN_FUNCTION(); \ |
Sam Ravnborg | 0e0d314 | 2007-05-17 20:14:48 +0200 | [diff] [blame] | 207 | *(.text) \ |
Sam Ravnborg | 312b148 | 2008-01-28 20:21:15 +0100 | [diff] [blame] | 208 | *(.ref.text) \ |
Al Viro | 23ec23c | 2007-10-13 08:40:24 +0100 | [diff] [blame] | 209 | *(.text.init.refok) \ |
Sam Ravnborg | eb8f689 | 2008-01-20 20:07:28 +0100 | [diff] [blame] | 210 | *(.exit.text.refok) \ |
| 211 | DEV_KEEP(init.text) \ |
| 212 | DEV_KEEP(exit.text) \ |
| 213 | CPU_KEEP(init.text) \ |
| 214 | CPU_KEEP(exit.text) \ |
| 215 | MEM_KEEP(init.text) \ |
| 216 | MEM_KEEP(exit.text) |
| 217 | |
Sam Ravnborg | 7664709 | 2007-05-13 00:31:33 +0200 | [diff] [blame] | 218 | |
Sam Ravnborg | 6d30e3a | 2005-07-14 20:15:44 +0000 | [diff] [blame] | 219 | /* sched.text is aling to function alignment to secure we have same |
| 220 | * address even at second ld pass when generating System.map */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 221 | #define SCHED_TEXT \ |
Sam Ravnborg | 6d30e3a | 2005-07-14 20:15:44 +0000 | [diff] [blame] | 222 | ALIGN_FUNCTION(); \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 223 | VMLINUX_SYMBOL(__sched_text_start) = .; \ |
| 224 | *(.sched.text) \ |
| 225 | VMLINUX_SYMBOL(__sched_text_end) = .; |
| 226 | |
Sam Ravnborg | 6d30e3a | 2005-07-14 20:15:44 +0000 | [diff] [blame] | 227 | /* spinlock.text is aling to function alignment to secure we have same |
| 228 | * address even at second ld pass when generating System.map */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 229 | #define LOCK_TEXT \ |
Sam Ravnborg | 6d30e3a | 2005-07-14 20:15:44 +0000 | [diff] [blame] | 230 | ALIGN_FUNCTION(); \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 231 | VMLINUX_SYMBOL(__lock_text_start) = .; \ |
| 232 | *(.spinlock.text) \ |
| 233 | VMLINUX_SYMBOL(__lock_text_end) = .; |
Prasanna S Panchamukhi | d0aaff9 | 2005-09-06 15:19:26 -0700 | [diff] [blame] | 234 | |
| 235 | #define KPROBES_TEXT \ |
| 236 | ALIGN_FUNCTION(); \ |
| 237 | VMLINUX_SYMBOL(__kprobes_text_start) = .; \ |
| 238 | *(.kprobes.text) \ |
| 239 | VMLINUX_SYMBOL(__kprobes_text_end) = .; |
Paolo 'Blaisorblade' Giarrusso | a7d0c21 | 2005-09-10 19:44:54 +0200 | [diff] [blame] | 240 | |
Sam Ravnborg | 01ba2bd | 2008-01-20 14:15:03 +0100 | [diff] [blame] | 241 | /* init and exit section handling */ |
Sam Ravnborg | eb8f689 | 2008-01-20 20:07:28 +0100 | [diff] [blame] | 242 | #define INIT_DATA \ |
| 243 | *(.init.data) \ |
| 244 | DEV_DISCARD(init.data) \ |
| 245 | DEV_DISCARD(init.rodata) \ |
| 246 | CPU_DISCARD(init.data) \ |
| 247 | CPU_DISCARD(init.rodata) \ |
| 248 | MEM_DISCARD(init.data) \ |
| 249 | MEM_DISCARD(init.rodata) |
Sam Ravnborg | 01ba2bd | 2008-01-20 14:15:03 +0100 | [diff] [blame] | 250 | |
Sam Ravnborg | eb8f689 | 2008-01-20 20:07:28 +0100 | [diff] [blame] | 251 | #define INIT_TEXT \ |
| 252 | *(.init.text) \ |
| 253 | DEV_DISCARD(init.text) \ |
| 254 | CPU_DISCARD(init.text) \ |
| 255 | MEM_DISCARD(init.text) |
| 256 | |
| 257 | #define EXIT_DATA \ |
| 258 | *(.exit.data) \ |
| 259 | DEV_DISCARD(exit.data) \ |
| 260 | DEV_DISCARD(exit.rodata) \ |
| 261 | CPU_DISCARD(exit.data) \ |
| 262 | CPU_DISCARD(exit.rodata) \ |
| 263 | MEM_DISCARD(exit.data) \ |
| 264 | MEM_DISCARD(exit.rodata) |
| 265 | |
| 266 | #define EXIT_TEXT \ |
| 267 | *(.exit.text) \ |
| 268 | DEV_DISCARD(exit.text) \ |
| 269 | CPU_DISCARD(exit.text) \ |
| 270 | MEM_DISCARD(exit.text) |
Sam Ravnborg | 01ba2bd | 2008-01-20 14:15:03 +0100 | [diff] [blame] | 271 | |
Paolo 'Blaisorblade' Giarrusso | a7d0c21 | 2005-09-10 19:44:54 +0200 | [diff] [blame] | 272 | /* DWARF debug sections. |
| 273 | Symbols in the DWARF debugging sections are relative to |
| 274 | the beginning of the section so we begin them at 0. */ |
| 275 | #define DWARF_DEBUG \ |
| 276 | /* DWARF 1 */ \ |
| 277 | .debug 0 : { *(.debug) } \ |
| 278 | .line 0 : { *(.line) } \ |
| 279 | /* GNU DWARF 1 extensions */ \ |
| 280 | .debug_srcinfo 0 : { *(.debug_srcinfo) } \ |
| 281 | .debug_sfnames 0 : { *(.debug_sfnames) } \ |
| 282 | /* DWARF 1.1 and DWARF 2 */ \ |
| 283 | .debug_aranges 0 : { *(.debug_aranges) } \ |
| 284 | .debug_pubnames 0 : { *(.debug_pubnames) } \ |
| 285 | /* DWARF 2 */ \ |
| 286 | .debug_info 0 : { *(.debug_info \ |
| 287 | .gnu.linkonce.wi.*) } \ |
| 288 | .debug_abbrev 0 : { *(.debug_abbrev) } \ |
| 289 | .debug_line 0 : { *(.debug_line) } \ |
| 290 | .debug_frame 0 : { *(.debug_frame) } \ |
| 291 | .debug_str 0 : { *(.debug_str) } \ |
| 292 | .debug_loc 0 : { *(.debug_loc) } \ |
| 293 | .debug_macinfo 0 : { *(.debug_macinfo) } \ |
| 294 | /* SGI/MIPS DWARF 2 extensions */ \ |
| 295 | .debug_weaknames 0 : { *(.debug_weaknames) } \ |
| 296 | .debug_funcnames 0 : { *(.debug_funcnames) } \ |
| 297 | .debug_typenames 0 : { *(.debug_typenames) } \ |
| 298 | .debug_varnames 0 : { *(.debug_varnames) } \ |
| 299 | |
| 300 | /* Stabs debugging sections. */ |
| 301 | #define STABS_DEBUG \ |
| 302 | .stab 0 : { *(.stab) } \ |
| 303 | .stabstr 0 : { *(.stabstr) } \ |
| 304 | .stab.excl 0 : { *(.stab.excl) } \ |
| 305 | .stab.exclstr 0 : { *(.stab.exclstr) } \ |
| 306 | .stab.index 0 : { *(.stab.index) } \ |
| 307 | .stab.indexstr 0 : { *(.stab.indexstr) } \ |
| 308 | .comment 0 : { *(.comment) } |
Jeremy Fitzhardinge | 9c9b8b3 | 2006-09-25 23:32:26 -0700 | [diff] [blame] | 309 | |
Jeremy Fitzhardinge | 7664c5a | 2006-12-08 02:36:19 -0800 | [diff] [blame] | 310 | #define BUG_TABLE \ |
| 311 | . = ALIGN(8); \ |
| 312 | __bug_table : AT(ADDR(__bug_table) - LOAD_OFFSET) { \ |
| 313 | __start___bug_table = .; \ |
| 314 | *(__bug_table) \ |
| 315 | __stop___bug_table = .; \ |
| 316 | } |
| 317 | |
Jeremy Fitzhardinge | 9c9b8b3 | 2006-09-25 23:32:26 -0700 | [diff] [blame] | 318 | #define NOTES \ |
Roland McGrath | cbe8712 | 2007-07-19 01:48:36 -0700 | [diff] [blame] | 319 | .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \ |
| 320 | VMLINUX_SYMBOL(__start_notes) = .; \ |
| 321 | *(.note.*) \ |
| 322 | VMLINUX_SYMBOL(__stop_notes) = .; \ |
| 323 | } |
Andrew Morton | 61ce1ef | 2006-10-27 11:41:44 -0700 | [diff] [blame] | 324 | |
| 325 | #define INITCALLS \ |
Linus Torvalds | b3438f8 | 2006-11-20 11:47:18 -0800 | [diff] [blame] | 326 | *(.initcall0.init) \ |
| 327 | *(.initcall0s.init) \ |
Andrew Morton | 61ce1ef | 2006-10-27 11:41:44 -0700 | [diff] [blame] | 328 | *(.initcall1.init) \ |
Andrew Morton | 735a7ff | 2006-10-27 11:42:37 -0700 | [diff] [blame] | 329 | *(.initcall1s.init) \ |
Andrew Morton | 61ce1ef | 2006-10-27 11:41:44 -0700 | [diff] [blame] | 330 | *(.initcall2.init) \ |
Andrew Morton | 735a7ff | 2006-10-27 11:42:37 -0700 | [diff] [blame] | 331 | *(.initcall2s.init) \ |
Andrew Morton | 61ce1ef | 2006-10-27 11:41:44 -0700 | [diff] [blame] | 332 | *(.initcall3.init) \ |
Andrew Morton | 735a7ff | 2006-10-27 11:42:37 -0700 | [diff] [blame] | 333 | *(.initcall3s.init) \ |
Andrew Morton | 61ce1ef | 2006-10-27 11:41:44 -0700 | [diff] [blame] | 334 | *(.initcall4.init) \ |
Andrew Morton | 735a7ff | 2006-10-27 11:42:37 -0700 | [diff] [blame] | 335 | *(.initcall4s.init) \ |
Andrew Morton | 61ce1ef | 2006-10-27 11:41:44 -0700 | [diff] [blame] | 336 | *(.initcall5.init) \ |
Andrew Morton | 735a7ff | 2006-10-27 11:42:37 -0700 | [diff] [blame] | 337 | *(.initcall5s.init) \ |
Linus Torvalds | 8d610dd | 2006-12-11 12:12:04 -0800 | [diff] [blame] | 338 | *(.initcallrootfs.init) \ |
Andrew Morton | 61ce1ef | 2006-10-27 11:41:44 -0700 | [diff] [blame] | 339 | *(.initcall6.init) \ |
Andrew Morton | 735a7ff | 2006-10-27 11:42:37 -0700 | [diff] [blame] | 340 | *(.initcall6s.init) \ |
| 341 | *(.initcall7.init) \ |
| 342 | *(.initcall7s.init) |
Andrew Morton | 61ce1ef | 2006-10-27 11:41:44 -0700 | [diff] [blame] | 343 | |
Fenghua Yu | 5fb7dc3 | 2007-07-19 01:48:12 -0700 | [diff] [blame] | 344 | #define PERCPU(align) \ |
| 345 | . = ALIGN(align); \ |
| 346 | __per_cpu_start = .; \ |
| 347 | .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) { \ |
| 348 | *(.data.percpu) \ |
| 349 | *(.data.percpu.shared_aligned) \ |
| 350 | } \ |
| 351 | __per_cpu_end = .; |