6 OUTPUT_FORMAT(elf32-littlearm)
8 STARTUP(target/arm/s5l8700/crt0.o)
10 #define PLUGINSIZE PLUGIN_BUFFER_SIZE
11 #define CODECSIZE CODEC_SIZE
14 #define STUBOFFSET 0x10000
21 #define DRAMORIG 0x08000000
23 /* End of the audio buffer, where the codec buffer starts */
24 #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE)
26 #define DRAM_SIZE (MEMORYSIZE * 0x100000)
28 #define DRAMSIZE (DRAM_SIZE - STUBOFFSET - PLUGINSIZE - CODECSIZE)
29 #define CODECORIG (ENDAUDIOADDR)
30 #if CONFIG_CPU==S5L8700
31 #define IRAMSIZE (128*1024) /* 256KB total - 128KB for core, 128KB for plugins */
33 #define IRAMSIZE (96*1024) /* 176KB total - 96KB for core, 80KB for plugins */
36 /* Where the codec buffer ends, and the plugin buffer starts */
37 #define ENDADDR (ENDAUDIOADDR + CODECSIZE)
41 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
42 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
47 loadaddress = DRAMORIG;
52 _intvectend = _newstart ;
54 _intvectcopy = LOADADDR(.intvect) ;
94 _iramcopy = LOADADDR(.iram) ;
137 .audiobufend ENDAUDIOADDR (NOLOAD) :
143 .codec CODECORIG (NOLOAD) :
149 .plugin ENDADDR (NOLOAD) :