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) - STUBOFFSET - CODECSIZE - \
21 PLUGINSIZE - QHARRAY_SIZE - FRAME_SIZE - TTB_SIZE)
23 #define DRAMORIG (0x0 + STUBOFFSET)
24 /* #define IRAMORIG 0x1FFFC000 */
25 #define IRAMORIG DRAMORIG
27 #define IRAMSIZE IRAM_SIZE
29 /* End of the audio buffer, where the codec buffer starts */
30 #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE)
32 /* Where the codec buffer ends, and the plugin buffer starts */
33 #define ENDADDR (ENDAUDIOADDR + CODECSIZE)
37 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
38 QHARRAY : ORIGIN = QHARRAY_PHYS_ADDR, LENGTH = QHARRAY_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 )
81 #if 0 /* Unneeded at the moment */
82 /* .ncdata section is placed at uncached physical alias address and is
83 * loaded at the proper cached virtual address - no copying is
84 * performed in the init code */
85 .ncdata . + NOCACHE_BASE :
87 . = ALIGN(CACHEALIGN_SIZE); /* >= Cache line boundary */
89 . = ALIGN(CACHEALIGN_SIZE); /* >= Cache line boundary */
104 _vectorscopy = LOADADDR(.vectors);
114 _sdmacodecopy = stackbegin;
125 .ncbss . + NOCACHE_BASE (NOLOAD) :
127 . = ALIGN(CACHEALIGN_SIZE); /* >= Cache line boundary */
129 . = ALIGN(CACHEALIGN_SIZE); /* >= Cache line boundary */
132 .endaddr . - NOCACHE_BASE (NOLOAD) :
143 .audiobufend ENDAUDIOADDR (NOLOAD) :
149 .codec ENDAUDIOADDR (NOLOAD) :
155 .plugin ENDADDR (NOLOAD) :
161 .sdma _pluginbuf : AT( _sdmacodecopy )