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