equal
deleted
inserted
replaced
|
1 /* Script for ld -r: link without relocation */ |
|
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 /* ??? Why is .gcc_exc here? */ |
|
12 } |
|
13 /* The Cygwin32 library uses a section to avoid copying certain data |
|
14 on fork. This used to be named ".data". The linker used |
|
15 to include this between __data_start__ and __data_end__, but that |
|
16 breaks building the cygwin32 dll. Instead, we name the section |
|
17 ".data_cygwin_nocopy" and explictly include it after __data_end__. */ |
|
18 .data : |
|
19 { |
|
20 *(.data) |
|
21 *(.data2) |
|
22 *(.jcr) |
|
23 } |
|
24 .rdata : |
|
25 { |
|
26 *(.rdata) |
|
27 *(.rdata_runtime_pseudo_reloc) |
|
28 } |
|
29 .pdata : |
|
30 { |
|
31 *(.pdata) |
|
32 } |
|
33 .bss : |
|
34 { |
|
35 *(.bss) |
|
36 *(COMMON) |
|
37 } |
|
38 .edata : |
|
39 { |
|
40 *(.edata) |
|
41 } |
|
42 /DISCARD/ : |
|
43 { |
|
44 *(.debug$S) |
|
45 *(.debug$T) |
|
46 *(.debug$F) |
|
47 *(.drectve) |
|
48 } |
|
49 .idata : |
|
50 { |
|
51 /* This cannot currently be handled with grouped sections. |
|
52 See pe.em:sort_sections. */ |
|
53 } |
|
54 .CRT : |
|
55 { |
|
56 /* ___crt_xl_end__ is defined in the TLS Directory support code */ |
|
57 } |
|
58 .tls : |
|
59 { |
|
60 } |
|
61 .endjunk : |
|
62 { |
|
63 /* end is deprecated, don't use it */ |
|
64 } |
|
65 .rsrc : |
|
66 { |
|
67 *(.rsrc) |
|
68 } |
|
69 .reloc : |
|
70 { |
|
71 *(.reloc) |
|
72 } |
|
73 .stab : |
|
74 { |
|
75 *(.stab) |
|
76 } |
|
77 .stabstr : |
|
78 { |
|
79 *(.stabstr) |
|
80 } |
|
81 /* DWARF debug sections. |
|
82 Symbols in the DWARF debugging sections are relative to the beginning |
|
83 of the section. Unlike other targets that fake this by putting the |
|
84 section VMA at 0, the PE format will not allow it. */ |
|
85 /* DWARF 1.1 and DWARF 2. */ |
|
86 .debug_aranges : |
|
87 { |
|
88 *(.debug_aranges) |
|
89 } |
|
90 .debug_pubnames : |
|
91 { |
|
92 *(.debug_pubnames) |
|
93 } |
|
94 /* DWARF 2. */ |
|
95 .debug_info : |
|
96 { |
|
97 *(.debug_info) *(.gnu.linkonce.wi.*) |
|
98 } |
|
99 .debug_abbrev : |
|
100 { |
|
101 *(.debug_abbrev) |
|
102 } |
|
103 .debug_line : |
|
104 { |
|
105 *(.debug_line) |
|
106 } |
|
107 .debug_frame : |
|
108 { |
|
109 *(.debug_frame) |
|
110 } |
|
111 .debug_str : |
|
112 { |
|
113 *(.debug_str) |
|
114 } |
|
115 .debug_loc : |
|
116 { |
|
117 *(.debug_loc) |
|
118 } |
|
119 .debug_macinfo : |
|
120 { |
|
121 *(.debug_macinfo) |
|
122 } |
|
123 /* SGI/MIPS DWARF 2 extensions. */ |
|
124 .debug_weaknames : |
|
125 { |
|
126 *(.debug_weaknames) |
|
127 } |
|
128 .debug_funcnames : |
|
129 { |
|
130 *(.debug_funcnames) |
|
131 } |
|
132 .debug_typenames : |
|
133 { |
|
134 *(.debug_typenames) |
|
135 } |
|
136 .debug_varnames : |
|
137 { |
|
138 *(.debug_varnames) |
|
139 } |
|
140 /* DWARF 3. */ |
|
141 .debug_ranges : |
|
142 { |
|
143 *(.debug_ranges) |
|
144 } |
|
145 } |