1 /* The following TEXT start address leaves space for the monitor
6 OUTPUT_ARCH("mips:4000")
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);
42 PROVIDE (__runtime_reloc_start = .);
44 PROVIDE (__runtime_reloc_stop = .);
50 .eh_frame_hdr : { *(.eh_frame_hdr) }
52 /* The .eh_frame section from the crtend file contains the
53 end of eh_frame marker and it must be last. */
54 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
57 .gcc_except_table : { *(.gcc_except_table) }
58 .jcr : { KEEP (*(.jcr)) }
61 /* gcc uses crtbegin.o to find the start of
62 the constructors, so we make sure it is
63 first. Because this is a wildcard, it
64 doesn't matter if the user does not
65 actually link against crtbegin.o; the
66 linker won't look for a file to match a
67 wildcard. The wildcard also means that it
68 doesn't matter which directory crtbegin.o
71 KEEP (*crtbegin.o(.ctors))
73 /* We don't want to include the .ctor section from
74 from the crtend.o file until after the sorted ctors.
75 The .ctor section from the crtend file contains the
76 end of ctors marker and it must be last */
78 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
79 KEEP (*(SORT(.ctors.*)))
85 KEEP (*crtbegin.o(.dtors))
86 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
87 KEEP (*(SORT(.dtors.*)))
126 *(.gnu.linkonce.sb.*)