1 /* Linker script forJMR 3904 board */
4 OUTPUT_ARCH("mips:3000")
5 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
6 GROUP(-lc -ljmr3904 -lgcc)
10 PROVIDE (_mem_size = 0x100000); /* JMR3904 comes as standard with 512k of RAM */
11 /* but this is 1 Mb */
13 /* PROVIDE (__global = 0); */
16 * Initalize some symbols to be zero so we can reference them in the
17 * crt0 without core dumping. These functions are all optional, but
18 * we do this so we can have our crt0 always use them if they exist.
19 * This is so BSPs work better when using the crt0 installed with gcc.
20 * We have to initalize them twice, so we multiple object file
21 * formats, as some prepend an underscore.
23 PROVIDE (hardware_init_hook = 0);
24 PROVIDE (software_init_hook = 0);
28 /* Load everything into DRAM, except for the stack. Put stack in SRAM */
30 /* This is NOT the address which fits with the monitor from jmr. */
31 /* It fits the Cygmon ROMS */
41 PROVIDE (__runtime_reloc_start = .);
43 PROVIDE (__runtime_reloc_stop = .);
93 /* Put stack in SRAM (8 Kb); this size is the same as the stack from
94 the original script (when everything was in SRAM). */
97 /* DWARF debug sections.
98 Symbols in the DWARF debugging sections are relative to
99 the beginning of the section so we begin them at 0. */
102 .debug 0 : { *(.debug) }
103 .line 0 : { *(.line) }
105 /* GNU DWARF 1 extensions */
106 .debug_srcinfo 0 : { *(.debug_srcinfo) }
107 .debug_sfnames 0 : { *(.debug_sfnames) }
109 /* DWARF 1.1 and DWARF 2 */
110 .debug_aranges 0 : { *(.debug_aranges) }
111 .debug_pubnames 0 : { *(.debug_pubnames) }
114 .debug_info 0 : { *(.debug_info) }
115 .debug_abbrev 0 : { *(.debug_abbrev) }
116 .debug_line 0 : { *(.debug_line) }
117 .debug_frame 0 : { *(.debug_frame) }
118 .debug_str 0 : { *(.debug_str) }
119 .debug_loc 0 : { *(.debug_loc) }
120 .debug_macinfo 0 : { *(.debug_macinfo) }
122 /* SGI/MIPS DWARF 2 extensions */
123 .debug_weaknames 0 : { *(.debug_weaknames) }
124 .debug_funcnames 0 : { *(.debug_funcnames) }
125 .debug_typenames 0 : { *(.debug_typenames) }
126 .debug_varnames 0 : { *(.debug_varnames) }