/****************************************************************************/
/*  66AK2Gxx_C66.cmd                                                        */
/*  Copyright (c) 2016  Texas Instruments Incorporated                      */
/*  Author: Rafael de Souza                                                 */
/*                                                                          */
/*    Description: This file is a sample linker command file that can be    */
/*                 used for linking programs built with the C compiler and  */
/*                 running the resulting .out file on the C66x DSP core of  */
/*                 a 66AK2Gxx device.                                       */
/*                 Use it as a guideline.  You will want to                 */
/*                 change the memory layout to match your specific          */
/*                 target system.  You may want to change the allocation    */
/*                 scheme according to the size of your program.            */
/*                                                                          */
/****************************************************************************/

MEMORY
{

  /*  L2SRAM :  o = 0x00900000 l = 0x00080000   /* 512kB internal SRAM */
  /*  L2_SRAM_1 :  o = 0x00980000 l = 0x00080000   /* 512kB internal SRAM */
    MSMC_SRAM :  o = 0x0C100000 l = 0x00100000   /* 1MB MSMC Shared SRAM */

}

SECTIONS
{
    .text          >  L2SRAM
    .stack         >  L2SRAM
    .bss           >  L2SRAM
    .cio           >  L2SRAM
    .const         >  L2SRAM
    .data          >  L2SRAM
    .switch        >  L2SRAM
    .sysmem        >  L2SRAM
    .far           >  L2SRAM
    .args          >  L2SRAM
    .ppinfo        >  L2SRAM
    .ppdata        >  L2SRAM
  
    /* COFF sections */
    .pinit         >  L2SRAM
    .cinit         >  L2SRAM
  
    /* EABI sections */
    .binit         >  L2SRAM
    .init_array    >  L2SRAM
    .neardata      >  L2SRAM
    .fardata       >  L2SRAM
    .rodata        >  L2SRAM
    .c6xabi.exidx  >  L2SRAM
    .c6xabi.extab  >  L2SRAM
}


