5 OUTPUT_FORMAT(elf32-littlearm)
7 INPUT(target/arm/s3c2440/crt0.o)
9 #define PLUGINSIZE PLUGIN_BUFFER_SIZE
10 #define CODECSIZE CODEC_SIZE
13 #define STUBOFFSET 0x10000
19 #define DRAMSIZE (MEMORYSIZE * 0x100000) - 0x100 - STUBOFFSET - PLUGINSIZE - CODECSIZE - LCD_BUFFER_SIZE - TTB_SIZE
21 #define DRAMORIG 0x00000100 + STUBOFFSET
22 #define IRAMORIG DRAMORIG
24 #define IRAMSIZE 0x1000
26 /* End of the audio buffer, where the codec buffer starts */
27 #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE)
29 /* Where the codec buffer ends, and the plugin buffer starts */
30 #define ENDADDR (ENDAUDIOADDR + CODECSIZE)
34 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
53 *(.rodata) /* problems without this, dunno why */
59 /* Pseudo-allocate the copies of the data sections */
63 /* TRICK ALERT! For RAM execution, we put the .data section at the
64 same load address as the copy. Thus, we don't waste extra RAM
65 when we don't actually need the copy. */
66 .data : AT ( _datacopy )
86 _vectorscopy = LOADADDR(.vectors);
97 _iramcopy = LOADADDR(.iram);
130 .audiobufend ENDAUDIOADDR: