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) }
51 .eh_frame : { KEEP (*(.eh_frame)) }
52 .gcc_except_table : { *(.gcc_except_table) }
53 .jcr : { KEEP (*(.jcr)) }
56 /* gcc uses crtbegin.o to find the start of
57 the constructors, so we make sure it is
58 first. Because this is a wildcard, it
59 doesn't matter if the user does not
60 actually link against crtbegin.o; the
61 linker won't look for a file to match a
62 wildcard. The wildcard also means that it
63 doesn't matter which directory crtbegin.o
66 KEEP (*crtbegin.o(.ctors))
68 /* We don't want to include the .ctor section from
69 from the crtend.o file until after the sorted ctors.
70 The .ctor section from the crtend file contains the
71 end of ctors marker and it must be last */
73 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
74 KEEP (*(SORT(.ctors.*)))
80 KEEP (*crtbegin.o(.dtors))
81 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
82 KEEP (*(SORT(.dtors.*)))
120 *(.gnu.linkonce.sb.*)