1 /* Linker script forJMR 3904 board using Java + qthreads */
4 OUTPUT_ARCH("mips:3000")
5 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
6 GROUP(-lc -ljmr3904 -lgcc -lgcjcoop)
10 PROVIDE (_mem_size = 0x100000); /* JMR3904 comes as standard with 512k of RAM */
12 /* Set the size of the stack for Java with qthreads. */
13 PROVIDE (_Jv_QthreadsStackSize = 0x10000);
15 /* PROVIDE (__global = 0); */
18 * Initalize some symbols to be zero so we can reference them in the
19 * crt0 without core dumping. These functions are all optional, but
20 * we do this so we can have our crt0 always use them if they exist.
21 * This is so BSPs work better when using the crt0 installed with gcc.
22 * We have to initalize them twice, so we multiple object file
23 * formats, as some prepend an underscore.
25 PROVIDE (hardware_init_hook = 0);
26 PROVIDE (software_init_hook = 0);
31 /* This is NOT the address which fits with the monitor from jmr. */
32 /* It fits the Cygmon ROMS */
42 PROVIDE (__runtime_reloc_start = .);
44 PROVIDE (__runtime_reloc_stop = .);
89 . += 0x2000 ; /* 8k bytes of stack. */
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) }