6 #define VMLINUX_SYMBOL(_sym_) _sym_
9 /* Align . to a 8 byte boundary equals to maximum function alignment. */
10 #define ALIGN_FUNCTION() . = ALIGN(8)
17 VMLINUX_SYMBOL(__start___markers) = .; \
19 VMLINUX_SYMBOL(__stop___markers) = .;
21 #define RO_DATA(align) \
23 .rodata : AT(ADDR(.rodata) - LOAD_OFFSET) { \
24 VMLINUX_SYMBOL(__start_rodata) = .; \
25 *(.rodata) *(.rodata.*) \
26 *(__vermagic) /* Kernel version magic */ \
27 *(__markers_strings) /* Markers: strings */ \
30 .rodata1 : AT(ADDR(.rodata1) - LOAD_OFFSET) { \
35 .pci_fixup : AT(ADDR(.pci_fixup) - LOAD_OFFSET) { \
36 VMLINUX_SYMBOL(__start_pci_fixups_early) = .; \
38 VMLINUX_SYMBOL(__end_pci_fixups_early) = .; \
39 VMLINUX_SYMBOL(__start_pci_fixups_header) = .; \
40 *(.pci_fixup_header) \
41 VMLINUX_SYMBOL(__end_pci_fixups_header) = .; \
42 VMLINUX_SYMBOL(__start_pci_fixups_final) = .; \
44 VMLINUX_SYMBOL(__end_pci_fixups_final) = .; \
45 VMLINUX_SYMBOL(__start_pci_fixups_enable) = .; \
46 *(.pci_fixup_enable) \
47 VMLINUX_SYMBOL(__end_pci_fixups_enable) = .; \
48 VMLINUX_SYMBOL(__start_pci_fixups_resume) = .; \
49 *(.pci_fixup_resume) \
50 VMLINUX_SYMBOL(__end_pci_fixups_resume) = .; \
53 /* RapidIO route ops */ \
54 .rio_route : AT(ADDR(.rio_route) - LOAD_OFFSET) { \
55 VMLINUX_SYMBOL(__start_rio_route_ops) = .; \
57 VMLINUX_SYMBOL(__end_rio_route_ops) = .; \
60 /* Kernel symbol table: Normal symbols */ \
61 __ksymtab : AT(ADDR(__ksymtab) - LOAD_OFFSET) { \
62 VMLINUX_SYMBOL(__start___ksymtab) = .; \
64 VMLINUX_SYMBOL(__stop___ksymtab) = .; \
67 /* Kernel symbol table: GPL-only symbols */ \
68 __ksymtab_gpl : AT(ADDR(__ksymtab_gpl) - LOAD_OFFSET) { \
69 VMLINUX_SYMBOL(__start___ksymtab_gpl) = .; \
71 VMLINUX_SYMBOL(__stop___ksymtab_gpl) = .; \
74 /* Kernel symbol table: Normal unused symbols */ \
75 __ksymtab_unused : AT(ADDR(__ksymtab_unused) - LOAD_OFFSET) { \
76 VMLINUX_SYMBOL(__start___ksymtab_unused) = .; \
78 VMLINUX_SYMBOL(__stop___ksymtab_unused) = .; \
81 /* Kernel symbol table: GPL-only unused symbols */ \
82 __ksymtab_unused_gpl : AT(ADDR(__ksymtab_unused_gpl) - LOAD_OFFSET) { \
83 VMLINUX_SYMBOL(__start___ksymtab_unused_gpl) = .; \
84 *(__ksymtab_unused_gpl) \
85 VMLINUX_SYMBOL(__stop___ksymtab_unused_gpl) = .; \
88 /* Kernel symbol table: GPL-future-only symbols */ \
89 __ksymtab_gpl_future : AT(ADDR(__ksymtab_gpl_future) - LOAD_OFFSET) { \
90 VMLINUX_SYMBOL(__start___ksymtab_gpl_future) = .; \
91 *(__ksymtab_gpl_future) \
92 VMLINUX_SYMBOL(__stop___ksymtab_gpl_future) = .; \
95 /* Kernel symbol table: Normal symbols */ \
96 __kcrctab : AT(ADDR(__kcrctab) - LOAD_OFFSET) { \
97 VMLINUX_SYMBOL(__start___kcrctab) = .; \
99 VMLINUX_SYMBOL(__stop___kcrctab) = .; \
102 /* Kernel symbol table: GPL-only symbols */ \
103 __kcrctab_gpl : AT(ADDR(__kcrctab_gpl) - LOAD_OFFSET) { \
104 VMLINUX_SYMBOL(__start___kcrctab_gpl) = .; \
106 VMLINUX_SYMBOL(__stop___kcrctab_gpl) = .; \
109 /* Kernel symbol table: Normal unused symbols */ \
110 __kcrctab_unused : AT(ADDR(__kcrctab_unused) - LOAD_OFFSET) { \
111 VMLINUX_SYMBOL(__start___kcrctab_unused) = .; \
112 *(__kcrctab_unused) \
113 VMLINUX_SYMBOL(__stop___kcrctab_unused) = .; \
116 /* Kernel symbol table: GPL-only unused symbols */ \
117 __kcrctab_unused_gpl : AT(ADDR(__kcrctab_unused_gpl) - LOAD_OFFSET) { \
118 VMLINUX_SYMBOL(__start___kcrctab_unused_gpl) = .; \
119 *(__kcrctab_unused_gpl) \
120 VMLINUX_SYMBOL(__stop___kcrctab_unused_gpl) = .; \
123 /* Kernel symbol table: GPL-future-only symbols */ \
124 __kcrctab_gpl_future : AT(ADDR(__kcrctab_gpl_future) - LOAD_OFFSET) { \
125 VMLINUX_SYMBOL(__start___kcrctab_gpl_future) = .; \
126 *(__kcrctab_gpl_future) \
127 VMLINUX_SYMBOL(__stop___kcrctab_gpl_future) = .; \
130 /* Kernel symbol table: strings */ \
131 __ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET) { \
132 *(__ksymtab_strings) \
135 /* Built-in module parameters. */ \
136 __param : AT(ADDR(__param) - LOAD_OFFSET) { \
137 VMLINUX_SYMBOL(__start___param) = .; \
139 VMLINUX_SYMBOL(__stop___param) = .; \
140 VMLINUX_SYMBOL(__end_rodata) = .; \
145 /* RODATA provided for backward compatibility.
146 * All archs are supposed to use RO_DATA() */
147 #define RODATA RO_DATA(4096)
149 #define SECURITY_INIT \
150 .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET) { \
151 VMLINUX_SYMBOL(__security_initcall_start) = .; \
152 *(.security_initcall.init) \
153 VMLINUX_SYMBOL(__security_initcall_end) = .; \
156 /* .text section. Map to function alignment to avoid address changes
157 * during second ld run in second ld pass when generating System.map */
161 *(.text.init.refok) \
164 /* sched.text is aling to function alignment to secure we have same
165 * address even at second ld pass when generating System.map */
168 VMLINUX_SYMBOL(__sched_text_start) = .; \
170 VMLINUX_SYMBOL(__sched_text_end) = .;
172 /* spinlock.text is aling to function alignment to secure we have same
173 * address even at second ld pass when generating System.map */
176 VMLINUX_SYMBOL(__lock_text_start) = .; \
178 VMLINUX_SYMBOL(__lock_text_end) = .;
180 #define KPROBES_TEXT \
182 VMLINUX_SYMBOL(__kprobes_text_start) = .; \
184 VMLINUX_SYMBOL(__kprobes_text_end) = .;
186 /* DWARF debug sections.
187 Symbols in the DWARF debugging sections are relative to
188 the beginning of the section so we begin them at 0. */
189 #define DWARF_DEBUG \
191 .debug 0 : { *(.debug) } \
192 .line 0 : { *(.line) } \
193 /* GNU DWARF 1 extensions */ \
194 .debug_srcinfo 0 : { *(.debug_srcinfo) } \
195 .debug_sfnames 0 : { *(.debug_sfnames) } \
196 /* DWARF 1.1 and DWARF 2 */ \
197 .debug_aranges 0 : { *(.debug_aranges) } \
198 .debug_pubnames 0 : { *(.debug_pubnames) } \
200 .debug_info 0 : { *(.debug_info \
201 .gnu.linkonce.wi.*) } \
202 .debug_abbrev 0 : { *(.debug_abbrev) } \
203 .debug_line 0 : { *(.debug_line) } \
204 .debug_frame 0 : { *(.debug_frame) } \
205 .debug_str 0 : { *(.debug_str) } \
206 .debug_loc 0 : { *(.debug_loc) } \
207 .debug_macinfo 0 : { *(.debug_macinfo) } \
208 /* SGI/MIPS DWARF 2 extensions */ \
209 .debug_weaknames 0 : { *(.debug_weaknames) } \
210 .debug_funcnames 0 : { *(.debug_funcnames) } \
211 .debug_typenames 0 : { *(.debug_typenames) } \
212 .debug_varnames 0 : { *(.debug_varnames) } \
214 /* Stabs debugging sections. */
215 #define STABS_DEBUG \
216 .stab 0 : { *(.stab) } \
217 .stabstr 0 : { *(.stabstr) } \
218 .stab.excl 0 : { *(.stab.excl) } \
219 .stab.exclstr 0 : { *(.stab.exclstr) } \
220 .stab.index 0 : { *(.stab.index) } \
221 .stab.indexstr 0 : { *(.stab.indexstr) } \
222 .comment 0 : { *(.comment) }
226 __bug_table : AT(ADDR(__bug_table) - LOAD_OFFSET) { \
227 __start___bug_table = .; \
229 __stop___bug_table = .; \
233 .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \
234 VMLINUX_SYMBOL(__start_notes) = .; \
236 VMLINUX_SYMBOL(__stop_notes) = .; \
241 *(.initcall0s.init) \
243 *(.initcall1s.init) \
245 *(.initcall2s.init) \
247 *(.initcall3s.init) \
249 *(.initcall4s.init) \
251 *(.initcall5s.init) \
252 *(.initcallrootfs.init) \
254 *(.initcall6s.init) \
258 #define PERCPU(align) \
260 __per_cpu_start = .; \
261 .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) { \
263 *(.data.percpu.shared_aligned) \