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 */
11 /* but this is 1 Mb */
13 /* Set the size of the stack for Java with qthreads. */
14 PROVIDE (_Jv_QthreadsStackSize = 0x10000);
16 /* PROVIDE (__global = 0); */
19 * Initalize some symbols to be zero so we can reference them in the
20 * crt0 without core dumping. These functions are all optional, but
21 * we do this so we can have our crt0 always use them if they exist.
22 * This is so BSPs work better when using the crt0 installed with gcc.
23 * We have to initalize them twice, so we multiple object file
24 * formats, as some prepend an underscore.
26 PROVIDE (hardware_init_hook = 0);
27 PROVIDE (software_init_hook = 0);
31 /* Load everything into DRAM, except for the stack. Put stack in SRAM */
33 /* This is NOT the address which fits with the monitor from jmr. */
34 /* It fits the Cygmon ROMS */
44 PROVIDE (__runtime_reloc_start = .);
46 PROVIDE (__runtime_reloc_stop = .);
96 /* Put stack in SRAM (8 Kb); this size is the same as the stack from
97 the original script (when everything was in SRAM). */
100 /* DWARF debug sections.
101 Symbols in the DWARF debugging sections are relative to
102 the beginning of the section so we begin them at 0. */
105 .debug 0 : { *(.debug) }
106 .line 0 : { *(.line) }
108 /* GNU DWARF 1 extensions */
109 .debug_srcinfo 0 : { *(.debug_srcinfo) }
110 .debug_sfnames 0 : { *(.debug_sfnames) }
112 /* DWARF 1.1 and DWARF 2 */
113 .debug_aranges 0 : { *(.debug_aranges) }
114 .debug_pubnames 0 : { *(.debug_pubnames) }
117 .debug_info 0 : { *(.debug_info) }
118 .debug_abbrev 0 : { *(.debug_abbrev) }
119 .debug_line 0 : { *(.debug_line) }
120 .debug_frame 0 : { *(.debug_frame) }
121 .debug_str 0 : { *(.debug_str) }
122 .debug_loc 0 : { *(.debug_loc) }
123 .debug_macinfo 0 : { *(.debug_macinfo) }
125 /* SGI/MIPS DWARF 2 extensions */
126 .debug_weaknames 0 : { *(.debug_weaknames) }
127 .debug_funcnames 0 : { *(.debug_funcnames) }
128 .debug_typenames 0 : { *(.debug_typenames) }
129 .debug_varnames 0 : { *(.debug_varnames) }