1 /* Linker script for the SH2 Low-Cost Eval Board. */
9 ram (rwx) : ORIGIN = 0x4004000, LENGTH = 0x40000
12 /* Put the stack up high. */
13 /* (Commented out because it doesn't seem to work right) */
14 /*PROVIDE (__stack = 0x403ff00);*/
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 cover a.out (which prepends
21 an underscore) and coff object file formats. */
23 PROVIDE (hardware_init_hook = 0);
24 PROVIDE (_hardware_init_hook = 0);
25 PROVIDE (software_init_hook = 0);
26 PROVIDE (_software_init_hook = 0);
28 /* Put everything in ram (of course). */
37 LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
44 LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
74 /* I know, I know, stack sections are supposed to be useless; but
75 this actually worked for me, as opposed to the PROVIDE. */
81 .stab 0 (NOLOAD) : { *(.stab) }
82 .stabstr 0 (NOLOAD) : { *(.stabstr) }
84 /* DWARF debug sections.
85 Symbols in the DWARF debugging sections are relative to
86 the beginning of the section so we begin them at 0. */
88 .debug 0 : { *(.debug) }
89 .line 0 : { *(.line) }
90 /* GNU DWARF 1 extensions */
91 .debug_srcinfo 0 : { *(.debug_srcinfo) }
92 .debug_sfnames 0 : { *(.debug_sfnames) }
93 /* DWARF 1.1 and DWARF 2 */
94 .debug_aranges 0 : { *(.debug_aranges) }
95 .debug_pubnames 0 : { *(.debug_pubnames) }
97 .debug_info 0 : { *(.debug_info) }
98 .debug_abbrev 0 : { *(.debug_abbrev) }
99 .debug_line 0 : { *(.debug_line) }
100 .debug_frame 0 : { *(.debug_frame) }
101 .debug_str 0 : { *(.debug_str) }
102 .debug_loc 0 : { *(.debug_loc) }
103 .debug_macinfo 0 : { *(.debug_macinfo) }
104 /* SGI/MIPS DWARF 2 extensions */
105 .debug_weaknames 0 : { *(.debug_weaknames) }
106 .debug_funcnames 0 : { *(.debug_funcnames) }
107 .debug_typenames 0 : { *(.debug_typenames) }
108 .debug_varnames 0 : { *(.debug_varnames) }