4 OUTPUT_FORMAT(elf32-sh)
5 STARTUP(target/sh/crt0.o)
7 #define DRAMSIZE (MEMORYSIZE * 0x100000)
9 #define DRAMORIG 0x09000000
10 #define IRAMORIG 0x0f000000
11 #define IRAMSIZE 0x1000
12 #define FLASHORIG 0x02000000 + ROM_START
13 #define FLASHSIZE 256K - ROM_START
17 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
18 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
19 FLASH : ORIGIN = FLASHORIG, LENGTH = FLASHSIZE
29 .data : AT ( _datacopy )
32 KEEP(*(.resetvectors));
43 . = ALIGN(0x10); /* Maintain proper alignment for .text section */
46 /* TRICK ALERT! Newer versions of the linker don't allow output sections
47 to overlap even if one of them is empty, so advance the location pointer
49 .text LOADADDR(.data) + SIZEOF(.data) :