2 OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradlittlemips")
6 /* Do we need any of these for elf?
8 PROVIDE (_DYNAMIC = 0);
12 /* Read-only sections, merged into text segment: */
13 . = 0x80100000 + SIZEOF_HEADERS;
14 .interp : { *(.interp) }
16 .dynsym : { *(.dynsym) }
17 .dynstr : { *(.dynstr) }
18 .gnu.version : { *(.gnu.version) }
19 .gnu.version_d : { *(.gnu.version_d) }
20 .gnu.version_r : { *(.gnu.version_r) }
21 .rel.init : { *(.rel.init) }
22 .rela.init : { *(.rela.init) }
27 *(.rel.gnu.linkonce.t.*)
33 *(.rela.gnu.linkonce.t.*)
35 .rel.fini : { *(.rel.fini) }
36 .rela.fini : { *(.rela.fini) }
41 *(.rel.gnu.linkonce.r.*)
47 *(.rela.gnu.linkonce.r.*)
53 *(.rel.gnu.linkonce.d.*)
59 *(.rela.gnu.linkonce.d.*)
61 .rel.ctors : { *(.rel.ctors) }
62 .rela.ctors : { *(.rela.ctors) }
63 .rel.dtors : { *(.rel.dtors) }
64 .rela.dtors : { *(.rela.dtors) }
65 .rel.got : { *(.rel.got) }
66 .rela.got : { *(.rela.got) }
71 *(.rel.gnu.linkonce.s.*)
77 *(.rela.gnu.linkonce.s.*)
83 *(.rel.gnu.linkonce.sb.*)
89 *(.rel.gnu.linkonce.sb.*)
95 *(.rel.gnu.linkonce.s2.*)
101 *(.rela.gnu.linkonce.s2.*)
107 *(.rel.gnu.linkonce.sb2.*)
113 *(.rela.gnu.linkonce.sb2.*)
119 *(.rel.gnu.linkonce.b.*)
125 *(.rela.gnu.linkonce.b.*)
127 .rel.plt : { *(.rel.plt) }
128 .rela.plt : { *(.rela.plt) }
139 /* .gnu.warning sections are handled specially by elf32.em. */
147 PROVIDE (__etext = .);
148 PROVIDE (_etext = .);
150 .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) }
151 .rodata1 : { *(.rodata1) }
152 .reginfo : { *(.reginfo) }
153 .sdata2 : { *(.sdata2) *(.sdata2.*) *(.gnu.linkonce.s2.*) }
154 .sbss2 : { *(.sbss2) *(.sbss2.*) *(.gnu.linkonce.sb2.*) }
155 . = ALIGN(0x2000) + (. & (0x2000 - 1));
163 .data1 : { *(.data1) }
164 .eh_frame : { KEEP (*(.eh_frame)) }
165 .gcc_except_table : { *(.gcc_except_table) }
168 /* gcc uses crtbegin.o to find the start of
169 the constructors, so we make sure it is
170 first. Because this is a wildcard, it
171 doesn't matter if the user does not
172 actually link against crtbegin.o; the
173 linker won't look for a file to match a
174 wildcard. The wildcard also means that it
175 doesn't matter which directory crtbegin.o
177 KEEP (*crtbegin.o(.ctors))
178 /* We don't want to include the .ctor section from
179 from the crtend.o file until after the sorted ctors.
180 The .ctor section from the crtend file contains the
181 end of ctors marker and it must be last */
182 KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
183 KEEP (*(SORT(.ctors.*)))
188 KEEP (*crtbegin.o(.dtors))
189 KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
190 KEEP (*(SORT(.dtors.*)))
194 _gp = ALIGN(16) + 0x7ff0;
195 .got : { *(.got.plt) *(.got) }
196 .dynamic : { *(.dynamic) }
197 /* We want the small data sections together, so single-instruction offsets
198 can access them all, and initialized data all before uninitialized, so
199 we can shorten the on-disk segment size. */
211 PROVIDE (__sbss_start = .);
212 PROVIDE (___sbss_start = .);
216 *(.gnu.linkonce.sb.*)
218 PROVIDE (__sbss_end = .);
219 PROVIDE (___sbss_end = .);
228 /* Align here to ensure that the .bss section occupies space up to
229 _end. Align after .bss to ensure correct alignment even if the
230 .bss section disappears because there are no input sections. */
236 /* Stabs debugging sections. */
237 .stab 0 : { *(.stab) }
238 .stabstr 0 : { *(.stabstr) }
239 .stab.excl 0 : { *(.stab.excl) }
240 .stab.exclstr 0 : { *(.stab.exclstr) }
241 .stab.index 0 : { *(.stab.index) }
242 .stab.indexstr 0 : { *(.stab.indexstr) }
243 .comment 0 : { *(.comment) }
244 /* DWARF debug sections.
245 Symbols in the DWARF debugging sections are relative to the beginning
246 of the section so we begin them at 0. */
248 .debug 0 : { *(.debug) }
249 .line 0 : { *(.line) }
250 /* GNU DWARF 1 extensions */
251 .debug_srcinfo 0 : { *(.debug_srcinfo) }
252 .debug_sfnames 0 : { *(.debug_sfnames) }
253 /* DWARF 1.1 and DWARF 2 */
254 .debug_aranges 0 : { *(.debug_aranges) }
255 .debug_pubnames 0 : { *(.debug_pubnames) }
257 .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
258 .debug_abbrev 0 : { *(.debug_abbrev) }
259 .debug_line 0 : { *(.debug_line) }
260 .debug_frame 0 : { *(.debug_frame) }
261 .debug_str 0 : { *(.debug_str) }
262 .debug_loc 0 : { *(.debug_loc) }
263 .debug_macinfo 0 : { *(.debug_macinfo) }
264 /* SGI/MIPS DWARF 2 extensions */
265 .debug_weaknames 0 : { *(.debug_weaknames) }
266 .debug_funcnames 0 : { *(.debug_funcnames) }
267 .debug_typenames 0 : { *(.debug_typenames) }
268 .debug_varnames 0 : { *(.debug_varnames) }
269 /* These must appear regardless of . */