Linux 2.6.14.1
[linux/fpc-iii.git] / include / asm-generic / vmlinux.lds.h
bloba9c55490fb8238e78584176bdb6002a6bd38432e
1 #ifndef LOAD_OFFSET
2 #define LOAD_OFFSET 0
3 #endif
5 #ifndef VMLINUX_SYMBOL
6 #define VMLINUX_SYMBOL(_sym_) _sym_
7 #endif
9 /* Align . to a 8 byte boundary equals to maximum function alignment. */
10 #define ALIGN_FUNCTION() . = ALIGN(8)
12 #define RODATA \
13 .rodata : AT(ADDR(.rodata) - LOAD_OFFSET) { \
14 *(.rodata) *(.rodata.*) \
15 *(__vermagic) /* Kernel version magic */ \
16 } \
18 .rodata1 : AT(ADDR(.rodata1) - LOAD_OFFSET) { \
19 *(.rodata1) \
20 } \
22 /* PCI quirks */ \
23 .pci_fixup : AT(ADDR(.pci_fixup) - LOAD_OFFSET) { \
24 VMLINUX_SYMBOL(__start_pci_fixups_early) = .; \
25 *(.pci_fixup_early) \
26 VMLINUX_SYMBOL(__end_pci_fixups_early) = .; \
27 VMLINUX_SYMBOL(__start_pci_fixups_header) = .; \
28 *(.pci_fixup_header) \
29 VMLINUX_SYMBOL(__end_pci_fixups_header) = .; \
30 VMLINUX_SYMBOL(__start_pci_fixups_final) = .; \
31 *(.pci_fixup_final) \
32 VMLINUX_SYMBOL(__end_pci_fixups_final) = .; \
33 VMLINUX_SYMBOL(__start_pci_fixups_enable) = .; \
34 *(.pci_fixup_enable) \
35 VMLINUX_SYMBOL(__end_pci_fixups_enable) = .; \
36 } \
38 /* Kernel symbol table: Normal symbols */ \
39 __ksymtab : AT(ADDR(__ksymtab) - LOAD_OFFSET) { \
40 VMLINUX_SYMBOL(__start___ksymtab) = .; \
41 *(__ksymtab) \
42 VMLINUX_SYMBOL(__stop___ksymtab) = .; \
43 } \
45 /* Kernel symbol table: GPL-only symbols */ \
46 __ksymtab_gpl : AT(ADDR(__ksymtab_gpl) - LOAD_OFFSET) { \
47 VMLINUX_SYMBOL(__start___ksymtab_gpl) = .; \
48 *(__ksymtab_gpl) \
49 VMLINUX_SYMBOL(__stop___ksymtab_gpl) = .; \
50 } \
52 /* Kernel symbol table: Normal symbols */ \
53 __kcrctab : AT(ADDR(__kcrctab) - LOAD_OFFSET) { \
54 VMLINUX_SYMBOL(__start___kcrctab) = .; \
55 *(__kcrctab) \
56 VMLINUX_SYMBOL(__stop___kcrctab) = .; \
57 } \
59 /* Kernel symbol table: GPL-only symbols */ \
60 __kcrctab_gpl : AT(ADDR(__kcrctab_gpl) - LOAD_OFFSET) { \
61 VMLINUX_SYMBOL(__start___kcrctab_gpl) = .; \
62 *(__kcrctab_gpl) \
63 VMLINUX_SYMBOL(__stop___kcrctab_gpl) = .; \
64 } \
66 /* Kernel symbol table: strings */ \
67 __ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET) { \
68 *(__ksymtab_strings) \
69 } \
71 /* Built-in module parameters. */ \
72 __param : AT(ADDR(__param) - LOAD_OFFSET) { \
73 VMLINUX_SYMBOL(__start___param) = .; \
74 *(__param) \
75 VMLINUX_SYMBOL(__stop___param) = .; \
78 #define SECURITY_INIT \
79 .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET) { \
80 VMLINUX_SYMBOL(__security_initcall_start) = .; \
81 *(.security_initcall.init) \
82 VMLINUX_SYMBOL(__security_initcall_end) = .; \
85 /* sched.text is aling to function alignment to secure we have same
86 * address even at second ld pass when generating System.map */
87 #define SCHED_TEXT \
88 ALIGN_FUNCTION(); \
89 VMLINUX_SYMBOL(__sched_text_start) = .; \
90 *(.sched.text) \
91 VMLINUX_SYMBOL(__sched_text_end) = .;
93 /* spinlock.text is aling to function alignment to secure we have same
94 * address even at second ld pass when generating System.map */
95 #define LOCK_TEXT \
96 ALIGN_FUNCTION(); \
97 VMLINUX_SYMBOL(__lock_text_start) = .; \
98 *(.spinlock.text) \
99 VMLINUX_SYMBOL(__lock_text_end) = .;
101 #define KPROBES_TEXT \
102 ALIGN_FUNCTION(); \
103 VMLINUX_SYMBOL(__kprobes_text_start) = .; \
104 *(.kprobes.text) \
105 VMLINUX_SYMBOL(__kprobes_text_end) = .;
107 /* DWARF debug sections.
108 Symbols in the DWARF debugging sections are relative to
109 the beginning of the section so we begin them at 0. */
110 #define DWARF_DEBUG \
111 /* DWARF 1 */ \
112 .debug 0 : { *(.debug) } \
113 .line 0 : { *(.line) } \
114 /* GNU DWARF 1 extensions */ \
115 .debug_srcinfo 0 : { *(.debug_srcinfo) } \
116 .debug_sfnames 0 : { *(.debug_sfnames) } \
117 /* DWARF 1.1 and DWARF 2 */ \
118 .debug_aranges 0 : { *(.debug_aranges) } \
119 .debug_pubnames 0 : { *(.debug_pubnames) } \
120 /* DWARF 2 */ \
121 .debug_info 0 : { *(.debug_info \
122 .gnu.linkonce.wi.*) } \
123 .debug_abbrev 0 : { *(.debug_abbrev) } \
124 .debug_line 0 : { *(.debug_line) } \
125 .debug_frame 0 : { *(.debug_frame) } \
126 .debug_str 0 : { *(.debug_str) } \
127 .debug_loc 0 : { *(.debug_loc) } \
128 .debug_macinfo 0 : { *(.debug_macinfo) } \
129 /* SGI/MIPS DWARF 2 extensions */ \
130 .debug_weaknames 0 : { *(.debug_weaknames) } \
131 .debug_funcnames 0 : { *(.debug_funcnames) } \
132 .debug_typenames 0 : { *(.debug_typenames) } \
133 .debug_varnames 0 : { *(.debug_varnames) } \
135 /* Stabs debugging sections. */
136 #define STABS_DEBUG \
137 .stab 0 : { *(.stab) } \
138 .stabstr 0 : { *(.stabstr) } \
139 .stab.excl 0 : { *(.stab.excl) } \
140 .stab.exclstr 0 : { *(.stab.exclstr) } \
141 .stab.index 0 : { *(.stab.index) } \
142 .stab.indexstr 0 : { *(.stab.indexstr) } \
143 .comment 0 : { *(.comment) }