Debian Codegraph @

SCons/Config/linker_script

raw
1 /*
2 OUTPUT_FORMAT(pei-i386 VS pei-x86-64) must be set somewhere else
3 */
4 SECTIONS
5 {
6 .text __image_base__ + __section_alignment__ :
7 {
8 *(.init)
9 *(.text)
10 *(SORT(.text$*))
11 *(.glue_7t)
12 *(.glue_7)
13 ___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
14 LONG (-1);
15 *(EXCLUDE_FILE (*crtend.o) .ctors);
16 *(.ctor);
17 *(SORT(.ctors.*));
18 *crtend.o (.ctors);
19 LONG (0);
20 ___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
21 LONG (-1);
22 *(EXCLUDE_FILE (*crtend.o) .dtors);
23 *(.dtor);
24 *(SORT(.dtors.*));
25 *crtend.o (.dtors);
26 LONG (0);
27 *(.fini)
28 /* ??? Why is .gcc_exc here? */
29 *(.gcc_exc)
30 PROVIDE (etext = .);
31 *(.gcc_except_table)
32 }
33 /* The Cygwin32 library uses a section to avoid copying certain data
34 on fork. This used to be named ".data". The linker used
35 to include this between __data_start__ and __data_end__, but that
36 breaks building the cygwin32 dll. Instead, we name the section
37 ".data_cygwin_nocopy" and explicitly include it after __data_end__. */
38 .data BLOCK(__section_alignment__) :
39 {
40 __data_start__ = . ;
41 *(.data)
42 *(.data2)
43 *(SORT(.data$*))
44 __data_end__ = . ;
45 *(.data_cygwin_nocopy)
46 }
47 .rdata BLOCK(__section_alignment__) :
48 {
49 *(.rdata)
50 *(SORT(.rdata$*))
51 *(.eh_frame)
52 ___RUNTIME_PSEUDO_RELOC_LIST__ = .;
53 __RUNTIME_PSEUDO_RELOC_LIST__ = .;
54 *(.rdata_runtime_pseudo_reloc)
55 ___RUNTIME_PSEUDO_RELOC_LIST_END__ = .;
56 __RUNTIME_PSEUDO_RELOC_LIST_END__ = .;
57 }
58 .pdata BLOCK(__section_alignment__) :
59 {
60 *(.pdata)
61 }
62 .bss BLOCK(__section_alignment__) :
63 {
64 __bss_start__ = . ;
65 *(.bss)
66 *(COMMON)
67 __bss_end__ = . ;
68 }
69 .edata BLOCK(__section_alignment__) :
70 {
71 *(.edata)
72 }
73 /DISCARD/ :
74 {
75 *(.debug$S)
76 *(.debug$T)
77 *(.debug$F)
78 *(.drectve)
79 }
80 .idata BLOCK(__section_alignment__) :
81 {
82 /* This cannot currently be handled with grouped sections.
83 See pe.em:sort_sections. */
84 SORT(*)(.idata$2)
85 SORT(*)(.idata$3)
86 /* These zeroes mark the end of the import list. */
87 LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);
88 SORT(*)(.idata$4)
89 SORT(*)(.idata$5)
90 SORT(*)(.idata$6)
91 SORT(*)(.idata$7)
92 }
93 .CRT BLOCK(__section_alignment__) :
94 {
95 ___crt_xc_start__ = . ;
96 *(SORT(.CRT$XC*)) /* C initialization */
97 ___crt_xc_end__ = . ;
98 ___crt_xi_start__ = . ;
99 *(SORT(.CRT$XI*)) /* C++ initialization */
100 ___crt_xi_end__ = . ;
101 ___crt_xl_start__ = . ;
102 *(SORT(.CRT$XL*)) /* TLS callbacks */
103 /* ___crt_xl_end__ is defined in the TLS Directory support code */
104 ___crt_xp_start__ = . ;
105 *(SORT(.CRT$XP*)) /* Pre-termination */
106 ___crt_xp_end__ = . ;
107 ___crt_xt_start__ = . ;
108 *(SORT(.CRT$XT*)) /* Termination */
109 ___crt_xt_end__ = . ;
110 }
111 .tls BLOCK(__section_alignment__) :
112 {
113 ___tls_start__ = . ;
114 *(.tls)
115 *(.tls$)
116 *(SORT(.tls$*))
117 ___tls_end__ = . ;
118 }
119 .endjunk BLOCK(__section_alignment__) :
120 {
121 /* end is deprecated, don't use it */
122 PROVIDE (end = .);
123 PROVIDE ( _end = .);
124 __end__ = .;
125 }
126 .ndata BLOCK(__section_alignment__) :
127 {
128 *(.ndata)
129 }
130 .rsrc BLOCK(__section_alignment__) :
131 {
132 *(.rsrc)
133 *(SORT(.rsrc$*))
134 }
135 .reloc BLOCK(__section_alignment__) :
136 {
137 *(.reloc)
138 }
139 .stab BLOCK(__section_alignment__) (NOLOAD) :
140 {
141 *(.stab)
142 }
143 .stabstr BLOCK(__section_alignment__) (NOLOAD) :
144 {
145 *(.stabstr)
146 }
147 /* DWARF debug sections.
148 Symbols in the DWARF debugging sections are relative to the beginning
149 of the section. Unlike other targets that fake this by putting the
150 section VMA at 0, the PE format will not allow it. */
151 /* DWARF 1.1 and DWARF 2. */
152 .debug_aranges BLOCK(__section_alignment__) (NOLOAD) :
153 {
154 *(.debug_aranges)
155 }
156 .debug_pubnames BLOCK(__section_alignment__) (NOLOAD) :
157 {
158 *(.debug_pubnames)
159 }
160 /* DWARF 2. */
161 .debug_info BLOCK(__section_alignment__) (NOLOAD) :
162 {
163 *(.debug_info) *(.gnu.linkonce.wi.*)
164 }
165 .debug_abbrev BLOCK(__section_alignment__) (NOLOAD) :
166 {
167 *(.debug_abbrev)
168 }
169 .debug_line BLOCK(__section_alignment__) (NOLOAD) :
170 {
171 *(.debug_line)
172 }
173 .debug_frame BLOCK(__section_alignment__) (NOLOAD) :
174 {
175 *(.debug_frame)
176 }
177 .debug_str BLOCK(__section_alignment__) (NOLOAD) :
178 {
179 *(.debug_str)
180 }
181 .debug_loc BLOCK(__section_alignment__) (NOLOAD) :
182 {
183 *(.debug_loc)
184 }
185 .debug_macinfo BLOCK(__section_alignment__) (NOLOAD) :
186 {
187 *(.debug_macinfo)
188 }
189 /* SGI/MIPS DWARF 2 extensions. */
190 .debug_weaknames BLOCK(__section_alignment__) (NOLOAD) :
191 {
192 *(.debug_weaknames)
193 }
194 .debug_funcnames BLOCK(__section_alignment__) (NOLOAD) :
195 {
196 *(.debug_funcnames)
197 }
198 .debug_typenames BLOCK(__section_alignment__) (NOLOAD) :
199 {
200 *(.debug_typenames)
201 }
202 .debug_varnames BLOCK(__section_alignment__) (NOLOAD) :
203 {
204 *(.debug_varnames)
205 }
206 /* DWARF 3. */
207 .debug_ranges BLOCK(__section_alignment__) (NOLOAD) :
208 {
209 *(.debug_ranges)
210 }
211 }
212