1 /* The following TEXT start address leaves space for the monitor
2 workspace. i.e. the NEC VR4300 (IDT) first free address is actually
7 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
13 * Allocate the stack to be at the top of memory, since the stack
16 PROVIDE (__stack = 0);
17 /* PROVIDE (__global = 0); */
20 * Initalize some symbols to be zero so we can reference them in the
21 * crt0 without core dumping. These functions are all optional, but
22 * we do this so we can have our crt0 always use them if they exist.
23 * This is so BSPs work better when using the crt0 installed with gcc.
24 * We have to initalize them twice, so we multiple object file
25 * formats, as some prepend an underscore.
27 PROVIDE (hardware_exit_hook = 0);
28 PROVIDE (hardware_hazard_hook = 0);
29 PROVIDE (hardware_init_hook = 0);
30 PROVIDE (software_init_hook = 0);
51 PROVIDE (__runtime_reloc_start = .);
53 PROVIDE (__runtime_reloc_stop = .);
60 /* gcc uses crtbegin.o to find the start of
61 the constructors, so we make sure it is
62 first. Because this is a wildcard, it
63 doesn't matter if the user does not
64 actually link against crtbegin.o; the
65 linker won't look for a file to match a
66 wildcard. The wildcard also means that it
67 doesn't matter which directory crtbegin.o
70 KEEP (*crtbegin.o(.ctors))
72 /* We don't want to include the .ctor section from
73 from the crtend.o file until after the sorted ctors.
74 The .ctor section from the crtend file contains the
75 end of ctors marker and it must be last */
77 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
78 KEEP (*(SORT(.ctors.*)))
84 KEEP (*crtbegin.o(.dtors))
85 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
86 KEEP (*(SORT(.dtors.*)))
134 /* DWARF debug sections.
135 Symbols in the DWARF debugging sections are relative to
136 the beginning of the section so we begin them at 0. */
139 .debug 0 : { *(.debug) }
140 .line 0 : { *(.line) }
142 /* GNU DWARF 1 extensions */
143 .debug_srcinfo 0 : { *(.debug_srcinfo) }
144 .debug_sfnames 0 : { *(.debug_sfnames) }
146 /* DWARF 1.1 and DWARF 2 */
147 .debug_aranges 0 : { *(.debug_aranges) }
148 .debug_pubnames 0 : { *(.debug_pubnames) }
151 .debug_info 0 : { *(.debug_info) }
152 .debug_abbrev 0 : { *(.debug_abbrev) }
153 .debug_line 0 : { *(.debug_line) }
154 .debug_frame 0 : { *(.debug_frame) }
155 .debug_str 0 : { *(.debug_str) }
156 .debug_loc 0 : { *(.debug_loc) }
157 .debug_macinfo 0 : { *(.debug_macinfo) }
159 /* SGI/MIPS DWARF 2 extensions */
160 .debug_weaknames 0 : { *(.debug_weaknames) }
161 .debug_funcnames 0 : { *(.debug_funcnames) }
162 .debug_typenames 0 : { *(.debug_typenames) }
163 .debug_varnames 0 : { *(.debug_varnames) }