7 * The memory map look like this:
8 * +--------------------+ <- 0x06000000
12 * +--------------------+
16 * +--------------------+
17 * | .data | initialized data goes here
20 * +--------------------+
22 * | __bss_start | start of bss, cleared by crt0
24 * | __bss__end | start of heap, used by sbrk()
25 * +--------------------+
29 * | __stack | top of stack (for Master SH2)
30 * +--------------------+ <- 0x0603FC00
35 rom (rx) : ORIGIN = 0x02000000, LENGTH = 0x00400000
36 ram (wx) : ORIGIN = 0x06000000, LENGTH = 0x0003FC00
40 * Allocate the stack to be at the top of memory, since the stack
44 PROVIDE (__stack = 0x0603FC00);
48 /* .text 0x02000000 : */
60 SHORT (0x000B) /* rts */
61 SHORT (0x0009) /* nop */
65 SHORT (0x000B) /* rts */
66 SHORT (0x0009) /* nop */
76 LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
77 KEEP (*(SORT(.ctors.*)))
85 LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
86 KEEP (*(SORT(.dtors.*)))
99 __text_size = __text_end - __text_start;
102 AT ( LOADADDR (.text) + SIZEOF (.text) )
119 __data_size = __data_end - __data_start;
129 *(.gnu.linkonce.sb.*)
138 __bss_size = __bss_end - __bss_start;