5 OUTPUT_FORMAT(elf32-littlearm)
7 STARTUP(target/arm/imx31/crt0.o)
9 #define PLUGINSIZE PLUGIN_BUFFER_SIZE
10 #define CODECSIZE CODEC_SIZE
13 #define STUBOFFSET 0x10000
19 /* Subtract 1MB for the FRAME/TTB section */
20 #define DRAMSIZE (MEMORYSIZE * 0x100000 - 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE
22 #define DRAMORIG (0x0 + STUBOFFSET)
23 /* #define IRAMORIG 0x1FFFC000 */
24 #define IRAMORIG DRAMORIG
26 #define IRAMSIZE IRAM_SIZE
28 /* End of the audio buffer, where the codec buffer starts */
29 #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE)
31 /* Where the codec buffer ends, and the plugin buffer starts */
32 #define ENDADDR (ENDAUDIOADDR + CODECSIZE)
36 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
37 DEVBSS : ORIGIN = CSD0_BASE_ADDR + (MEMORYSIZE * 0x100000 - 0x100000), \
38 LENGTH = 0x100000 - FRAME_SIZE - TTB_SIZE
58 *(.rodata) /* problems without this, dunno why */
65 /* Pseudo-allocate the copies of the data sections */
69 /* TRICK ALERT! For RAM execution, we put the .data section at the
70 same load address as the copy. Thus, we don't waste extra RAM
71 when we don't actually need the copy. */
72 .data : AT ( _datacopy )
93 _vectorscopy = LOADADDR(.vectors);
103 _sdmacodecopy = stackbegin;
122 .audiobufend ENDAUDIOADDR (NOLOAD) :
128 .codec ENDAUDIOADDR (NOLOAD) :
134 .plugin ENDADDR (NOLOAD) :
140 .sdma _pluginbuf : AT( _sdmacodecopy )