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)
35 /* INIT section is the codec buffer */
36 #define INITSIZE CODECSIZE
37 #define INITSTART ENDAUDIOADDR
41 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
42 INIT : ORIGIN = INITSTART, LENGTH = INITSIZE
43 QHARRAY : ORIGIN = QHARRAY_PHYS_ADDR, LENGTH = QHARRAY_SIZE
63 *(.rodata) /* problems without this, dunno why */
70 /* Pseudo-allocate the copies of the data sections */
74 /* TRICK ALERT! For RAM execution, we put the .data section at the
75 same load address as the copy. Thus, we don't waste extra RAM
76 when we don't actually need the copy. */
77 .data : AT ( _datacopy )
86 #if 0 /* Unneeded at the moment */
87 /* .ncdata section is placed at uncached physical alias address and is
88 * loaded at the proper cached virtual address - no copying is
89 * performed in the init code */
90 .ncdata . + NOCACHE_BASE :
92 . = ALIGN(CACHEALIGN_SIZE); /* >= Cache line boundary */
94 . = ALIGN(CACHEALIGN_SIZE); /* >= Cache line boundary */
109 _vectorscopy = LOADADDR(.vectors);
120 _initcopy = LOADADDR(.init);
140 .ncbss . + NOCACHE_BASE (NOLOAD) :
142 . = ALIGN(CACHEALIGN_SIZE); /* >= Cache line boundary */
144 . = ALIGN(CACHEALIGN_SIZE); /* >= Cache line boundary */
147 .endaddr . - NOCACHE_BASE (NOLOAD) :
158 .audiobufend ENDAUDIOADDR (NOLOAD) :
164 .codec ENDAUDIOADDR (NOLOAD) :
170 .plugin ENDADDR (NOLOAD) :