

-stack  0x20000                         /* SOFTWARE STACK SIZE           */
-heap   0x20000                         /* HEAP AREA SIZE                */

/* SPECIFY THE SYSTEM MEMORY MAP */

MEMORY
{
    IRAM_MEM:     org = 0x00000000 len = 0x1000        /* RAM 0x1FBFF*/
    DDR3_A8:      org = 0x80000000 len = 0x0B000000  /* 176 MB */
    DDR3_DSP:     org = 0x8B000000 len = 0x02000000  /* 32 MB */
    DDR3_M4:      org = 0x8E000000 len = 0x01000000  /* 16 MB */
    DDR3_SR0:     org = 0x8F000000 len = 0x01000000  /* 16 MB */
    DDR3_M3VPSS:  org = 0x90000000 len = 0x10000000  /* 16 MB */
}

/* SPECIFY THE SECTIONS ALLOCATION INTO MEMORY */

SECTIONS
{
    .intvecs : load > IRAM_MEM
    .intc_text : load > IRAM_MEM
    .init    : load > DDR3_M4
              
    .text    : load > DDR3_M4 /* CODE                         */
    .data    : load > DDR3_M4 /* INITIALIZED GLOBAL AND STATIC VARIABLES. */
    .bss     : load > DDR3_M4 /* UNINITIALIZED OR ZERO INITIALIZED */
                                            /* GLOBAL & STATIC VARIABLES.   */
                    RUN_START(bss_start)
                    RUN_END(bss_end) 
    .const   : load > DDR3_M4              /* GLOBAL CONSTANTS             */
    .cinit   : load > DDR3_M4
    .stack   : load > DDR3_M4            /* SOFTWARE SYSTEM STACK        */
    .plt     : load > DDR3_M4
	.sysmem  : load > DDR3_M4
	.my_sect_ddr : load > DDR3_M4
}

