1 /* The following TEXT start address leaves space for the monitor
6 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
7 GROUP(-lc -lpmon -lgcc)
12 * Allocate the stack to be at the top of memory, since the stack
15 PROVIDE (__stack = 0);
16 /* PROVIDE (__global = 0); */
19 * Initalize some symbols to be zero so we can reference them in the
20 * crt0 without core dumping. These functions are all optional, but
21 * we do this so we can have our crt0 always use them if they exist.
22 * This is so BSPs work better when using the crt0 installed with gcc.
23 * We have to initalize them twice, so we multiple object file
24 * formats, as some prepend an underscore.
26 PROVIDE (hardware_exit_hook = 0);
27 PROVIDE (hardware_hazard_hook = 0);
28 PROVIDE (hardware_init_hook = 0);
29 PROVIDE (software_init_hook = 0);
43 PROVIDE (__runtime_reloc_start = .);
45 PROVIDE (__runtime_reloc_stop = .);
53 /* gcc uses crtbegin.o to find the start of
54 the constructors, so we make sure it is
55 first. Because this is a wildcard, it
56 doesn't matter if the user does not
57 actually link against crtbegin.o; the
58 linker won't look for a file to match a
59 wildcard. The wildcard also means that it
60 doesn't matter which directory crtbegin.o
63 KEEP (*crtbegin.o(.ctors))
65 /* We don't want to include the .ctor section from
66 from the crtend.o file until after the sorted ctors.
67 The .ctor section from the crtend file contains the
68 end of ctors marker and it must be last */
70 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
71 KEEP (*(SORT(.ctors.*)))
77 KEEP (*crtbegin.o(.dtors))
78 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
79 KEEP (*(SORT(.dtors.*)))
127 /* DWARF debug sections.
128 Symbols in the DWARF debugging sections are relative to
129 the beginning of the section so we begin them at 0. */
132 .debug 0 : { *(.debug) }
133 .line 0 : { *(.line) }
135 /* GNU DWARF 1 extensions */
136 .debug_srcinfo 0 : { *(.debug_srcinfo) }
137 .debug_sfnames 0 : { *(.debug_sfnames) }
139 /* DWARF 1.1 and DWARF 2 */
140 .debug_aranges 0 : { *(.debug_aranges) }
141 .debug_pubnames 0 : { *(.debug_pubnames) }
144 .debug_info 0 : { *(.debug_info) }
145 .debug_abbrev 0 : { *(.debug_abbrev) }
146 .debug_line 0 : { *(.debug_line) }
147 .debug_frame 0 : { *(.debug_frame) }
148 .debug_str 0 : { *(.debug_str) }
149 .debug_loc 0 : { *(.debug_loc) }
150 .debug_macinfo 0 : { *(.debug_macinfo) }
152 /* SGI/MIPS DWARF 2 extensions */
153 .debug_weaknames 0 : { *(.debug_weaknames) }
154 .debug_funcnames 0 : { *(.debug_funcnames) }
155 .debug_typenames 0 : { *(.debug_typenames) }
156 .debug_varnames 0 : { *(.debug_varnames) }