--entry_point="code_start"
--retain="reset_vector"
--retain="nmi_vector"

/* Specify the system memory map */

MEMORY
{
    /*
     *  RAM
     */
    SRAM_CPA0  : origin = 0x20110000, length = 0x008000
    SRAM_CDAX  : origin = 0x20120000, length = 0x008000
}


/* Specify the sections allocation into memory */

SECTIONS
{
	resetvector : {} > 0x20110000,  palign(8)
	nmivector   : {} > 0x20110040,  palign(8)
    codestart   : {} > SRAM_CPA0,   palign(8)
    .text       : {} > SRAM_CPA0,   palign(8)
    .binit      : {} > SRAM_CPA0,   palign(8)
    .cinit      : {} > SRAM_CPA0,   palign(8)
    .const      : {} > SRAM_CPA0,   palign(8)
    .rodata     : {} > SRAM_CPA0,   palign(8)
    .init_array : {} > SRAM_CPA0,   palign(8)
    .TI.ramfunc : {} > SRAM_CPA0,   palign(8)

    .data       : {} > SRAM_CDAX
    .bss        : {} > SRAM_CDAX
    .stack      : {} > SRAM_CDAX
    .sysmem     : {} > SRAM_CDAX
}