4 OUTPUT_FORMAT(elf32-sh)
7 #define PLUGINSIZE 0x8000
9 #define DRAMORIG 0x09000000
10 #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE
11 #define IRAMORIG 0x0f000000
12 #define IRAMSIZE 0x1000
13 #define FLASHORIG 0x02000000 + ROM_START
14 #define FLASHSIZE 256K - ROM_START
16 #define ENDADDR (DRAMORIG + DRAMSIZE)
20 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
21 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
22 FLASH : ORIGIN = FLASHORIG, LENGTH = FLASHSIZE
31 .data : AT ( _datacopy )
36 . = _datastart + 0x200;
40 . = ALIGN(0x10); /* Maintain proper alignment for .text section */
43 /* TRICK ALERT! Newer versions of the linker don't allow output sections
44 to overlap even if one of them is empty, so advance the location pointer
46 .text LOADADDR(.data) + SIZEOF(.data) :
61 .iram 0xf000000 : AT ( _iramcopy )