* Sync to trunk r63845.
[reactos.git] / boot / freeldr / freeldr / freeldr_i386.lds
1 SECTIONS
2 {
3 .text __image_base__ + __section_alignment__ :
4 {
5 *(.text)
6 *(SORT(.text*))
7 *(.data)
8 *(SORT(.data*))
9 *(.rdata)
10 *(SORT(.rdata*))
11 }
12
13 .edata BLOCK(__file_alignment__) :
14 {
15 *(.edata)
16 }
17
18 .bss :
19 {
20 __bss_start__ = . ;
21 *(.bss)
22 *(COMMON)
23 __bss_end__ = . ;
24 }
25
26 /* DWARF debug sections.
27 Symbols in the DWARF debugging sections are relative to the beginning
28 of the section. Unlike other targets that fake this by putting the
29 section VMA at 0, the PE format will not allow it. */
30 /* DWARF 1.1 and DWARF 2. */
31 .debug_aranges BLOCK(__section_alignment__) (NOLOAD) :
32 {
33 *(.debug_aranges)
34 }
35 .zdebug_aranges BLOCK(__section_alignment__) (NOLOAD) :
36 {
37 *(.zdebug_aranges)
38 }
39 .debug_pubnames BLOCK(__section_alignment__) (NOLOAD) :
40 {
41 *(.debug_pubnames)
42 }
43 .zdebug_pubnames BLOCK(__section_alignment__) (NOLOAD) :
44 {
45 *(.zdebug_pubnames)
46 }
47 .debug_pubtypes BLOCK(__section_alignment__) (NOLOAD) :
48 {
49 *(.debug_pubtypes)
50 }
51 .zdebug_pubtypes BLOCK(__section_alignment__) (NOLOAD) :
52 {
53 *(.zdebug_pubtypes)
54 }
55 /* DWARF 2. */
56 .debug_info BLOCK(__section_alignment__) (NOLOAD) :
57 {
58 *(.debug_info .gnu.linkonce.wi.*)
59 }
60 .zdebug_info BLOCK(__section_alignment__) (NOLOAD) :
61 {
62 *(.zdebug_info .zdebug.gnu.linkonce.wi.*)
63 }
64 .debug_abbrev BLOCK(__section_alignment__) (NOLOAD) :
65 {
66 *(.debug_abbrev)
67 }
68 .zdebug_abbrev BLOCK(__section_alignment__) (NOLOAD) :
69 {
70 *(.zdebug_abbrev)
71 }
72 .debug_line BLOCK(__section_alignment__) (NOLOAD) :
73 {
74 *(.debug_line)
75 }
76 .zdebug_line BLOCK(__section_alignment__) (NOLOAD) :
77 {
78 *(.zdebug_line)
79 }
80 .debug_frame BLOCK(__section_alignment__) (NOLOAD) :
81 {
82 *(.debug_frame*)
83 }
84 .zdebug_frame BLOCK(__section_alignment__) (NOLOAD) :
85 {
86 *(.zdebug_frame*)
87 }
88 .debug_str BLOCK(__section_alignment__) (NOLOAD) :
89 {
90 *(.debug_str)
91 }
92 .zdebug_str BLOCK(__section_alignment__) (NOLOAD) :
93 {
94 *(.zdebug_str)
95 }
96 .debug_loc BLOCK(__section_alignment__) (NOLOAD) :
97 {
98 *(.debug_loc)
99 }
100 .zdebug_loc BLOCK(__section_alignment__) (NOLOAD) :
101 {
102 *(.zdebug_loc)
103 }
104 .debug_macinfo BLOCK(__section_alignment__) (NOLOAD) :
105 {
106 *(.debug_macinfo)
107 }
108 .zdebug_macinfo BLOCK(__section_alignment__) (NOLOAD) :
109 {
110 *(.zdebug_macinfo)
111 }
112 /* SGI/MIPS DWARF 2 extensions. */
113 .debug_weaknames BLOCK(__section_alignment__) (NOLOAD) :
114 {
115 *(.debug_weaknames)
116 }
117 .zdebug_weaknames BLOCK(__section_alignment__) (NOLOAD) :
118 {
119 *(.zdebug_weaknames)
120 }
121 .debug_funcnames BLOCK(__section_alignment__) (NOLOAD) :
122 {
123 *(.debug_funcnames)
124 }
125 .zdebug_funcnames BLOCK(__section_alignment__) (NOLOAD) :
126 {
127 *(.zdebug_funcnames)
128 }
129 .debug_typenames BLOCK(__section_alignment__) (NOLOAD) :
130 {
131 *(.debug_typenames)
132 }
133 .zdebug_typenames BLOCK(__section_alignment__) (NOLOAD) :
134 {
135 *(.zdebug_typenames)
136 }
137 .debug_varnames BLOCK(__section_alignment__) (NOLOAD) :
138 {
139 *(.debug_varnames)
140 }
141 .zdebug_varnames BLOCK(__section_alignment__) (NOLOAD) :
142 {
143 *(.zdebug_varnames)
144 }
145 .debug_macro BLOCK(__section_alignment__) (NOLOAD) :
146 {
147 *(.debug_macro)
148 }
149 .zdebug_macro BLOCK(__section_alignment__) (NOLOAD) :
150 {
151 *(.zdebug_macro)
152 }
153 /* DWARF 3. */
154 .debug_ranges BLOCK(__section_alignment__) (NOLOAD) :
155 {
156 *(.debug_ranges)
157 }
158 .zdebug_ranges BLOCK(__section_alignment__) (NOLOAD) :
159 {
160 *(.zdebug_ranges)
161 }
162 /* DWARF 4. */
163 .debug_types BLOCK(__section_alignment__) (NOLOAD) :
164 {
165 *(.debug_types .gnu.linkonce.wt.*)
166 }
167 .zdebug_types BLOCK(__section_alignment__) (NOLOAD) :
168 {
169 *(.zdebug_types .gnu.linkonce.wt.*)
170 }
171
172 /DISCARD/ :
173 {
174 *(*)
175 }
176 }