|
1 /* Script for ld -Ur: link w/out relocation, do create constructors */ |
|
2 OUTPUT_FORMAT(pe-i386) |
|
3 SEARCH_DIR("/mingw//mingw32/lib"); SEARCH_DIR("/mingw//lib"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib"); |
|
4 SECTIONS |
|
5 { |
|
6 .text : |
|
7 { |
|
8 *(.text) |
|
9 *(.glue_7t) |
|
10 *(.glue_7) |
|
11 ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; |
|
12 LONG (-1);*(.ctors); *(.ctor); *(SORT(.ctors.*)); LONG (0); |
|
13 ___DTOR_LIST__ = .; __DTOR_LIST__ = . ; |
|
14 LONG (-1); *(.dtors); *(.dtor); *(SORT(.dtors.*)); LONG (0); |
|
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 explictly 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 .pdata : |
|
34 { |
|
35 *(.pdata) |
|
36 } |
|
37 .bss : |
|
38 { |
|
39 *(.bss) |
|
40 *(COMMON) |
|
41 } |
|
42 .edata : |
|
43 { |
|
44 *(.edata) |
|
45 } |
|
46 /DISCARD/ : |
|
47 { |
|
48 *(.debug$S) |
|
49 *(.debug$T) |
|
50 *(.debug$F) |
|
51 *(.drectve) |
|
52 } |
|
53 .idata : |
|
54 { |
|
55 /* This cannot currently be handled with grouped sections. |
|
56 See pe.em:sort_sections. */ |
|
57 } |
|
58 .CRT : |
|
59 { |
|
60 /* ___crt_xl_end__ is defined in the TLS Directory support code */ |
|
61 } |
|
62 .tls : |
|
63 { |
|
64 } |
|
65 .endjunk : |
|
66 { |
|
67 /* end is deprecated, don't use it */ |
|
68 } |
|
69 .rsrc : |
|
70 { |
|
71 *(.rsrc) |
|
72 } |
|
73 .reloc : |
|
74 { |
|
75 *(.reloc) |
|
76 } |
|
77 .stab : |
|
78 { |
|
79 *(.stab) |
|
80 } |
|
81 .stabstr : |
|
82 { |
|
83 *(.stabstr) |
|
84 } |
|
85 /* DWARF debug sections. |
|
86 Symbols in the DWARF debugging sections are relative to the beginning |
|
87 of the section. Unlike other targets that fake this by putting the |
|
88 section VMA at 0, the PE format will not allow it. */ |
|
89 /* DWARF 1.1 and DWARF 2. */ |
|
90 .debug_aranges : |
|
91 { |
|
92 *(.debug_aranges) |
|
93 } |
|
94 .debug_pubnames : |
|
95 { |
|
96 *(.debug_pubnames) |
|
97 } |
|
98 /* DWARF 2. */ |
|
99 .debug_info : |
|
100 { |
|
101 *(.debug_info) *(.gnu.linkonce.wi.*) |
|
102 } |
|
103 .debug_abbrev : |
|
104 { |
|
105 *(.debug_abbrev) |
|
106 } |
|
107 .debug_line : |
|
108 { |
|
109 *(.debug_line) |
|
110 } |
|
111 .debug_frame : |
|
112 { |
|
113 *(.debug_frame) |
|
114 } |
|
115 .debug_str : |
|
116 { |
|
117 *(.debug_str) |
|
118 } |
|
119 .debug_loc : |
|
120 { |
|
121 *(.debug_loc) |
|
122 } |
|
123 .debug_macinfo : |
|
124 { |
|
125 *(.debug_macinfo) |
|
126 } |
|
127 /* SGI/MIPS DWARF 2 extensions. */ |
|
128 .debug_weaknames : |
|
129 { |
|
130 *(.debug_weaknames) |
|
131 } |
|
132 .debug_funcnames : |
|
133 { |
|
134 *(.debug_funcnames) |
|
135 } |
|
136 .debug_typenames : |
|
137 { |
|
138 *(.debug_typenames) |
|
139 } |
|
140 .debug_varnames : |
|
141 { |
|
142 *(.debug_varnames) |
|
143 } |
|
144 /* DWARF 3. */ |
|
145 .debug_ranges : |
|
146 { |
|
147 *(.debug_ranges) |
|
148 } |
|
149 } |