6 #define VMLINUX_SYMBOL(_sym_) _sym_
9 /* Align . to a 8 byte boundary equals to maximum function alignment. */
10 #define ALIGN_FUNCTION() . = ALIGN(8)
15 .rodata : AT(ADDR(.rodata) - LOAD_OFFSET) { \
16 *(.rodata) *(.rodata.*) \
17 *(__vermagic) /* Kernel version magic */ \
20 .rodata1 : AT(ADDR(.rodata1) - LOAD_OFFSET) { \
25 .pci_fixup : AT(ADDR(.pci_fixup) - LOAD_OFFSET) { \
26 VMLINUX_SYMBOL(__start_pci_fixups_early) = .; \
28 VMLINUX_SYMBOL(__end_pci_fixups_early) = .; \
29 VMLINUX_SYMBOL(__start_pci_fixups_header) = .; \
30 *(.pci_fixup_header) \
31 VMLINUX_SYMBOL(__end_pci_fixups_header) = .; \
32 VMLINUX_SYMBOL(__start_pci_fixups_final) = .; \
34 VMLINUX_SYMBOL(__end_pci_fixups_final) = .; \
35 VMLINUX_SYMBOL(__start_pci_fixups_enable) = .; \
36 *(.pci_fixup_enable) \
37 VMLINUX_SYMBOL(__end_pci_fixups_enable) = .; \
40 /* RapidIO route ops */ \
41 .rio_route : AT(ADDR(.rio_route) - LOAD_OFFSET) { \
42 VMLINUX_SYMBOL(__start_rio_route_ops) = .; \
44 VMLINUX_SYMBOL(__end_rio_route_ops) = .; \
47 /* Kernel symbol table: Normal symbols */ \
48 __ksymtab : AT(ADDR(__ksymtab) - LOAD_OFFSET) { \
49 VMLINUX_SYMBOL(__start___ksymtab) = .; \
51 VMLINUX_SYMBOL(__stop___ksymtab) = .; \
54 /* Kernel symbol table: GPL-only symbols */ \
55 __ksymtab_gpl : AT(ADDR(__ksymtab_gpl) - LOAD_OFFSET) { \
56 VMLINUX_SYMBOL(__start___ksymtab_gpl) = .; \
58 VMLINUX_SYMBOL(__stop___ksymtab_gpl) = .; \
61 /* Kernel symbol table: Normal unused symbols */ \
62 __ksymtab_unused : AT(ADDR(__ksymtab_unused) - LOAD_OFFSET) { \
63 VMLINUX_SYMBOL(__start___ksymtab_unused) = .; \
65 VMLINUX_SYMBOL(__stop___ksymtab_unused) = .; \
68 /* Kernel symbol table: GPL-only unused symbols */ \
69 __ksymtab_unused_gpl : AT(ADDR(__ksymtab_unused_gpl) - LOAD_OFFSET) { \
70 VMLINUX_SYMBOL(__start___ksymtab_unused_gpl) = .; \
71 *(__ksymtab_unused_gpl) \
72 VMLINUX_SYMBOL(__stop___ksymtab_unused_gpl) = .; \
75 /* Kernel symbol table: GPL-future-only symbols */ \
76 __ksymtab_gpl_future : AT(ADDR(__ksymtab_gpl_future) - LOAD_OFFSET) { \
77 VMLINUX_SYMBOL(__start___ksymtab_gpl_future) = .; \
78 *(__ksymtab_gpl_future) \
79 VMLINUX_SYMBOL(__stop___ksymtab_gpl_future) = .; \
82 /* Kernel symbol table: Normal symbols */ \
83 __kcrctab : AT(ADDR(__kcrctab) - LOAD_OFFSET) { \
84 VMLINUX_SYMBOL(__start___kcrctab) = .; \
86 VMLINUX_SYMBOL(__stop___kcrctab) = .; \
89 /* Kernel symbol table: GPL-only symbols */ \
90 __kcrctab_gpl : AT(ADDR(__kcrctab_gpl) - LOAD_OFFSET) { \
91 VMLINUX_SYMBOL(__start___kcrctab_gpl) = .; \
93 VMLINUX_SYMBOL(__stop___kcrctab_gpl) = .; \
96 /* Kernel symbol table: Normal unused symbols */ \
97 __kcrctab_unused : AT(ADDR(__kcrctab_unused) - LOAD_OFFSET) { \
98 VMLINUX_SYMBOL(__start___kcrctab_unused) = .; \
100 VMLINUX_SYMBOL(__stop___kcrctab_unused) = .; \
103 /* Kernel symbol table: GPL-only unused symbols */ \
104 __kcrctab_unused_gpl : AT(ADDR(__kcrctab_unused_gpl) - LOAD_OFFSET) { \
105 VMLINUX_SYMBOL(__start___kcrctab_unused_gpl) = .; \
106 *(__kcrctab_unused_gpl) \
107 VMLINUX_SYMBOL(__stop___kcrctab_unused_gpl) = .; \
110 /* Kernel symbol table: GPL-future-only symbols */ \
111 __kcrctab_gpl_future : AT(ADDR(__kcrctab_gpl_future) - LOAD_OFFSET) { \
112 VMLINUX_SYMBOL(__start___kcrctab_gpl_future) = .; \
113 *(__kcrctab_gpl_future) \
114 VMLINUX_SYMBOL(__stop___kcrctab_gpl_future) = .; \
117 /* Kernel symbol table: strings */ \
118 __ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET) { \
119 *(__ksymtab_strings) \
122 /* Built-in module parameters. */ \
123 __param : AT(ADDR(__param) - LOAD_OFFSET) { \
124 VMLINUX_SYMBOL(__start___param) = .; \
126 VMLINUX_SYMBOL(__stop___param) = .; \
129 /* Unwind data binary search table */ \
135 #define SECURITY_INIT \
136 .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET) { \
137 VMLINUX_SYMBOL(__security_initcall_start) = .; \
138 *(.security_initcall.init) \
139 VMLINUX_SYMBOL(__security_initcall_end) = .; \
142 /* sched.text is aling to function alignment to secure we have same
143 * address even at second ld pass when generating System.map */
146 VMLINUX_SYMBOL(__sched_text_start) = .; \
148 VMLINUX_SYMBOL(__sched_text_end) = .;
150 /* spinlock.text is aling to function alignment to secure we have same
151 * address even at second ld pass when generating System.map */
154 VMLINUX_SYMBOL(__lock_text_start) = .; \
156 VMLINUX_SYMBOL(__lock_text_end) = .;
158 #define KPROBES_TEXT \
160 VMLINUX_SYMBOL(__kprobes_text_start) = .; \
162 VMLINUX_SYMBOL(__kprobes_text_end) = .;
164 #ifdef CONFIG_STACK_UNWIND
165 /* Unwind data binary search table */
166 #define EH_FRAME_HDR \
167 .eh_frame_hdr : AT(ADDR(.eh_frame_hdr) - LOAD_OFFSET) { \
168 VMLINUX_SYMBOL(__start_unwind_hdr) = .; \
170 VMLINUX_SYMBOL(__end_unwind_hdr) = .; \
176 /* DWARF debug sections.
177 Symbols in the DWARF debugging sections are relative to
178 the beginning of the section so we begin them at 0. */
179 #define DWARF_DEBUG \
181 .debug 0 : { *(.debug) } \
182 .line 0 : { *(.line) } \
183 /* GNU DWARF 1 extensions */ \
184 .debug_srcinfo 0 : { *(.debug_srcinfo) } \
185 .debug_sfnames 0 : { *(.debug_sfnames) } \
186 /* DWARF 1.1 and DWARF 2 */ \
187 .debug_aranges 0 : { *(.debug_aranges) } \
188 .debug_pubnames 0 : { *(.debug_pubnames) } \
190 .debug_info 0 : { *(.debug_info \
191 .gnu.linkonce.wi.*) } \
192 .debug_abbrev 0 : { *(.debug_abbrev) } \
193 .debug_line 0 : { *(.debug_line) } \
194 .debug_frame 0 : { *(.debug_frame) } \
195 .debug_str 0 : { *(.debug_str) } \
196 .debug_loc 0 : { *(.debug_loc) } \
197 .debug_macinfo 0 : { *(.debug_macinfo) } \
198 /* SGI/MIPS DWARF 2 extensions */ \
199 .debug_weaknames 0 : { *(.debug_weaknames) } \
200 .debug_funcnames 0 : { *(.debug_funcnames) } \
201 .debug_typenames 0 : { *(.debug_typenames) } \
202 .debug_varnames 0 : { *(.debug_varnames) } \
204 /* Stabs debugging sections. */
205 #define STABS_DEBUG \
206 .stab 0 : { *(.stab) } \
207 .stabstr 0 : { *(.stabstr) } \
208 .stab.excl 0 : { *(.stab.excl) } \
209 .stab.exclstr 0 : { *(.stab.exclstr) } \
210 .stab.index 0 : { *(.stab.index) } \
211 .stab.indexstr 0 : { *(.stab.indexstr) } \
212 .comment 0 : { *(.comment) }
215 .notes : { *(.note.*) } :note
219 *(.initcall0s.init) \
221 *(.initcall1s.init) \
223 *(.initcall2s.init) \
225 *(.initcall3s.init) \
227 *(.initcall4s.init) \
229 *(.initcall5s.init) \
231 *(.initcall6s.init) \