1 /* Script for -n: mix text and data on same page */
2 OUTPUT_FORMAT(pei-i386)
3 SEARCH_DIR("/mingw/mingw32/lib"); SEARCH_DIR("/mingw/lib"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");
6 /* Make the virtual address and file offset synced if the alignment is
7 lower than the target page size. */
9 . = ALIGN(__section_alignment__);
10 .text __image_base__ + ( __section_alignment__ < 0x1000 ? . : __section_alignment__ ) :
17 ___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
19 *(EXCLUDE_FILE (*crtend.o) .ctors);
24 ___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
26 *(EXCLUDE_FILE (*crtend.o) .dtors);
32 /* ??? Why is .gcc_exc here? */
37 /* The Cygwin32 library uses a section to avoid copying certain data
38 on fork. This used to be named ".data". The linker used
39 to include this between __data_start__ and __data_end__, but that
40 breaks building the cygwin32 dll. Instead, we name the section
41 ".data_cygwin_nocopy" and explictly include it after __data_end__. */
42 .data BLOCK(__section_alignment__) :
50 *(.data_cygwin_nocopy)
52 .rdata BLOCK(__section_alignment__) :
57 ___RUNTIME_PSEUDO_RELOC_LIST__ = .;
58 __RUNTIME_PSEUDO_RELOC_LIST__ = .;
59 *(.rdata_runtime_pseudo_reloc)
60 ___RUNTIME_PSEUDO_RELOC_LIST_END__ = .;
61 __RUNTIME_PSEUDO_RELOC_LIST_END__ = .;
63 .pdata BLOCK(__section_alignment__) :
67 .bss BLOCK(__section_alignment__) :
74 .edata BLOCK(__section_alignment__) :
85 .idata BLOCK(__section_alignment__) :
87 /* This cannot currently be handled with grouped sections.
88 See pe.em:sort_sections. */
91 /* These zeroes mark the end of the import list. */
92 LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);
98 .CRT BLOCK(__section_alignment__) :
100 ___crt_xc_start__ = . ;
101 *(SORT(.CRT$XC*)) /* C initialization */
102 ___crt_xc_end__ = . ;
103 ___crt_xi_start__ = . ;
104 *(SORT(.CRT$XI*)) /* C++ initialization */
105 ___crt_xi_end__ = . ;
106 ___crt_xl_start__ = . ;
107 *(SORT(.CRT$XL*)) /* TLS callbacks */
108 /* ___crt_xl_end__ is defined in the TLS Directory support code */
109 ___crt_xp_start__ = . ;
110 *(SORT(.CRT$XP*)) /* Pre-termination */
111 ___crt_xp_end__ = . ;
112 ___crt_xt_start__ = . ;
113 *(SORT(.CRT$XT*)) /* Termination */
114 ___crt_xt_end__ = . ;
116 .tls BLOCK(__section_alignment__) :
124 .endjunk BLOCK(__section_alignment__) :
126 /* end is deprecated, don't use it */
131 .rsrc BLOCK(__section_alignment__) :
136 .reloc BLOCK(__section_alignment__) :
140 .stab BLOCK(__section_alignment__) (NOLOAD) :
144 .stabstr BLOCK(__section_alignment__) (NOLOAD) :
148 /* DWARF debug sections.
149 Symbols in the DWARF debugging sections are relative to the beginning
150 of the section. Unlike other targets that fake this by putting the
151 section VMA at 0, the PE format will not allow it. */
152 /* DWARF 1.1 and DWARF 2. */
153 .debug_aranges BLOCK(__section_alignment__) (NOLOAD) :
157 .debug_pubnames BLOCK(__section_alignment__) (NOLOAD) :
162 .debug_info BLOCK(__section_alignment__) (NOLOAD) :
164 *(.debug_info) *(.gnu.linkonce.wi.*)
166 .debug_abbrev BLOCK(__section_alignment__) (NOLOAD) :
170 .debug_line BLOCK(__section_alignment__) (NOLOAD) :
174 .debug_frame BLOCK(__section_alignment__) (NOLOAD) :
178 .debug_str BLOCK(__section_alignment__) (NOLOAD) :
182 .debug_loc BLOCK(__section_alignment__) (NOLOAD) :
186 .debug_macinfo BLOCK(__section_alignment__) (NOLOAD) :
190 /* SGI/MIPS DWARF 2 extensions. */
191 .debug_weaknames BLOCK(__section_alignment__) (NOLOAD) :
195 .debug_funcnames BLOCK(__section_alignment__) (NOLOAD) :
199 .debug_typenames BLOCK(__section_alignment__) (NOLOAD) :
203 .debug_varnames BLOCK(__section_alignment__) (NOLOAD) :
208 .debug_ranges BLOCK(__section_alignment__) (NOLOAD) :