4 OUTPUT_FORMAT("elf32-littlemips")
7 STARTUP(target/mips/ingenic_jz47xx/crt0.o)
10 #define STUBOFFSET 0x10000
16 #define DRAMORIG 0x80004000 + STUBOFFSET
17 #define DRAMSIZE (MEMORYSIZE * 0x100000 - STUBOFFSET)
18 #define IRAMORIG 0x80000000
21 /* End of the audio buffer, where the codec buffer starts */
22 #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE)
24 /* Where the codec buffer ends, and the plugin buffer starts */
25 #define ENDCODECADDR (ENDAUDIOADDR + CODEC_SIZE)
29 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
30 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
60 /* Set the load address of .iram at the same address as .bss
61 * so RAM won't be wasted as .iram in the end will get copied
63 .iram IRAMORIG: AT (_edata)
82 _iramcopy = LOADADDR(.iram);
99 *(.ibss*); /* Don't put this in IRAM as there's not enough space */
111 audiobufend = ENDAUDIOADDR;
112 codecbuf = ENDAUDIOADDR;
113 pluginbuf = ENDCODECADDR;