4 #ifdef ROCKBOX_LITTLE_ENDIAN
5 OUTPUT_FORMAT(elf32-littlearm)
7 OUTPUT_FORMAT(elf32-bigarm)
10 STARTUP(target/arm/s5l8700/crt0.o)
12 #define DRAMORIG 0x08000000
13 #define DRAMSIZE (MEMORYSIZE * 0x100000)
15 #define IRAMORIG 0x22000000
16 #if CONFIG_CPU==S5L8701
23 #define DFULOADADDR IRAMORIG
25 #define DFULOADADDR (IRAMORIG+0x20000)
28 /* This is not available in all versions of the S5L8700 */
29 #define FLASHORIG 0x24000000
34 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
35 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
36 FLASH : ORIGIN = FLASHORIG, LENGTH = FLASHSIZE
39 #if defined(IPOD_NANO2G) || defined(MEIZU_M6SL)
40 #define LOAD_AREA IRAM
42 #define LOAD_AREA FLASH
50 _intvectend = _newstart ;
52 _intvectcopy = LOADADDR(.intvect) ;
74 } > IRAM AT> LOAD_AREA
75 _datacopy = LOADADDR(.data) ;
95 /* The bss section is too large for IRAM - we just move it 12MB into the