6 OUTPUT_FORMAT(elf32-littlearm)
8 STARTUP(target/arm/crt0.o)
10 #define PLUGINSIZE PLUGIN_BUFFER_SIZE
11 #define CODECSIZE CODEC_SIZE
14 #define STUBOFFSET 0x10000
20 #define IRAMORIG IRAM_ORIG
21 #define DRAMORIG (DRAM_ORIG + STUBOFFSET)
23 /* End of the audio buffer, where the codec buffer starts */
24 #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE)
26 #define CODEC_BUFFER_FILLS_IRAM defined(AMS_LOWMEM) || (CONFIG_CPU == AS3525v2)
28 #if CODEC_BUFFER_FILLS_IRAM
29 /* Entire codec buffer in IRAM */
30 #define DRAMSIZE (DRAM_SIZE - STUBOFFSET - PLUGINSIZE - TTB_SIZE)
31 #define CODECORIG (IRAMORIG + (IRAM_SIZE - CODEC_SIZE))
32 #define IRAMSIZE (IRAM_SIZE - CODEC_SIZE)
34 #define DRAMSIZE (DRAM_SIZE - STUBOFFSET - PLUGINSIZE - CODECSIZE - TTB_SIZE)
35 #define CODECORIG (ENDAUDIOADDR)
36 #define IRAMSIZE (0x20000)
40 /* Where the codec buffer ends, and the plugin buffer starts */
41 #if CODEC_BUFFER_FILLS_IRAM
42 #define ENDADDR (ENDAUDIOADDR)
44 #define ENDADDR (ENDAUDIOADDR + CODECSIZE)
49 #if CODEC_BUFFER_FILLS_IRAM
50 CODEC_IRAM : ORIGIN = CODECORIG, LENGTH = CODEC_SIZE
52 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
53 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
58 loadaddress = DRAM_ORIG;
104 _iramcopy = LOADADDR(.iram);
123 _initcopy = LOADADDR(.init);
125 .stack _iramcopy (NOLOAD) :
149 .audiobufend ENDAUDIOADDR (NOLOAD) :
155 .codec CODECORIG (NOLOAD) :
159 #if CODEC_BUFFER_FILLS_IRAM
165 .plugin ENDADDR (NOLOAD) :