source: Daodan/MinGW/mingw32/lib/ldscripts/i386pe.xr@ 1076

Last change on this file since 1076 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 3.9 KB
RevLine 
[1046]1/* Script for ld -r: link without relocation */
2/* Copyright (C) 2014 Free Software Foundation, Inc.
3 Copying and distribution of this script, with or without modification,
4 are permitted in any medium without royalty provided the copyright
5 notice and this notice are preserved. */
6OUTPUT_FORMAT(pe-i386)
7SEARCH_DIR("/mingw/mingw32/lib"); SEARCH_DIR("/mingw/lib"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");
8SECTIONS
9{
10 .text :
11 {
12 *(.text)
13 *(.glue_7t)
14 *(.glue_7)
15 /* ??? Why is .gcc_exc here? */
16 }
17 /* The Cygwin32 library uses a section to avoid copying certain data
18 on fork. This used to be named ".data". The linker used
19 to include this between __data_start__ and __data_end__, but that
20 breaks building the cygwin32 dll. Instead, we name the section
21 ".data_cygwin_nocopy" and explicitly include it after __data_end__. */
22 .data :
23 {
24 *(.data)
25 *(.data2)
26 *(.jcr)
27 }
28 .rdata :
29 {
30 *(.rdata)
31 *(.rdata_runtime_pseudo_reloc)
32 }
33 .eh_frame :
34 {
35 *(.eh_frame*)
36 }
37 .pdata :
38 {
39 *(.pdata)
40 }
41 .bss :
42 {
43 *(.bss)
44 *(COMMON)
45 }
46 .edata :
47 {
48 *(.edata)
49 }
50 /DISCARD/ :
51 {
52 *(.debug$S)
53 *(.debug$T)
54 *(.debug$F)
55 *(.drectve)
56 }
57 .idata :
58 {
59 /* This cannot currently be handled with grouped sections.
60 See pe.em:sort_sections. */
61 }
62 .CRT :
63 {
64 /* ___crt_xl_end__ is defined in the TLS Directory support code */
65 }
66 /* Windows TLS expects .tls$AAA to be at the start and .tls$ZZZ to be
67 at the end of section. This is important because _tls_start MUST
68 be at the beginning of the section to enable SECREL32 relocations with TLS
69 data. */
70 .tls :
71 {
72 }
73 .endjunk :
74 {
75 /* end is deprecated, don't use it */
76 }
77 .rsrc : SUBALIGN(4)
78 {
79 *(.rsrc)
80 }
81 .reloc :
82 {
83 *(.reloc)
84 }
85 .stab :
86 {
87 *(.stab)
88 }
89 .stabstr :
90 {
91 *(.stabstr)
92 }
93 /* DWARF debug sections.
94 Symbols in the DWARF debugging sections are relative to the beginning
95 of the section. Unlike other targets that fake this by putting the
96 section VMA at 0, the PE format will not allow it. */
97 /* DWARF 1.1 and DWARF 2. */
98 .debug_aranges :
99 {
100 *(.debug_aranges)
101 }
102 .zdebug_aranges :
103 {
104 *(.zdebug_aranges)
105 }
106 .debug_pubnames :
107 {
108 *(.debug_pubnames)
109 }
110 .zdebug_pubnames :
111 {
112 *(.zdebug_pubnames)
113 }
114 .debug_pubtypes :
115 {
116 *(.debug_pubtypes)
117 }
118 .zdebug_pubtypes :
119 {
120 *(.zdebug_pubtypes)
121 }
122 /* DWARF 2. */
123 .debug_info :
124 {
125 *(.debug_info)
126 }
127 .zdebug_info :
128 {
129 *(.zdebug_info)
130 }
131 .debug_abbrev :
132 {
133 *(.debug_abbrev)
134 }
135 .zdebug_abbrev :
136 {
137 *(.zdebug_abbrev)
138 }
139 .debug_line :
140 {
141 *(.debug_line)
142 }
143 .zdebug_line :
144 {
145 *(.zdebug_line)
146 }
147 .debug_frame :
148 {
149 *(.debug_frame*)
150 }
151 .zdebug_frame :
152 {
153 *(.zdebug_frame*)
154 }
155 .debug_str :
156 {
157 *(.debug_str)
158 }
159 .zdebug_str :
160 {
161 *(.zdebug_str)
162 }
163 .debug_loc :
164 {
165 *(.debug_loc)
166 }
167 .zdebug_loc :
168 {
169 *(.zdebug_loc)
170 }
171 .debug_macinfo :
172 {
173 *(.debug_macinfo)
174 }
175 .zdebug_macinfo :
176 {
177 *(.zdebug_macinfo)
178 }
179 /* SGI/MIPS DWARF 2 extensions. */
180 .debug_weaknames :
181 {
182 *(.debug_weaknames)
183 }
184 .zdebug_weaknames :
185 {
186 *(.zdebug_weaknames)
187 }
188 .debug_funcnames :
189 {
190 *(.debug_funcnames)
191 }
192 .zdebug_funcnames :
193 {
194 *(.zdebug_funcnames)
195 }
196 .debug_typenames :
197 {
198 *(.debug_typenames)
199 }
200 .zdebug_typenames :
201 {
202 *(.zdebug_typenames)
203 }
204 .debug_varnames :
205 {
206 *(.debug_varnames)
207 }
208 .zdebug_varnames :
209 {
210 *(.zdebug_varnames)
211 }
212 .debug_macro :
213 {
214 *(.debug_macro)
215 }
216 .zdebug_macro :
217 {
218 *(.zdebug_macro)
219 }
220 /* DWARF 3. */
221 .debug_ranges :
222 {
223 *(.debug_ranges)
224 }
225 .zdebug_ranges :
226 {
227 *(.zdebug_ranges)
228 }
229 /* DWARF 4. */
230 .debug_types :
231 {
232 *(.debug_types)
233 }
234 .zdebug_types :
235 {
236 *(.zdebug_types)
237 }
238}
Note: See TracBrowser for help on using the repository browser.