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