/****************************************************************************/
/*  DM8148.cmd                                                              */
/*  Copyright (c) 2012  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 a DM8148.             */
/*                 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
{
    DSPL2RAM:     o = 0x00800080  l = 0x0003ff00  /* 256kB DSP L2 RAM */
    DSPL1PRAM:    o = 0x00E00000  l = 0x00008000  /* 32kB DSP L1 Program RAM */
    DSPL1DRAM:    o = 0x00F00000  l = 0x00008000  /* 32kB DSP L1 Data RAM */
    entry_point:  o = 0x00800000  l = 0x00000080
	DSP_PROG:	  o = 0x9f000080  l = 0x700000	//64M for dsp1 from 0x99000000, 8M for dsp2 from 0x9f000000
}

SECTIONS
{

	.text:_c_int00 > entry_point
    .text          >  DSP_PROG
    .stack         >  DSP_PROG
    .bss           >  DSP_PROG
    .cio           >  DSP_PROG
    .const         >  DSP_PROG
    .data          >  DSP_PROG
    .switch        >  DSP_PROG
    .sysmem        >  DSP_PROG
    .far           >  DSP_PROG
    .args          >  DSP_PROG
    .ppinfo        >  DSP_PROG
    .ppdata        >  DSPL2RAM
  
    /* TI-ABI or COFF sections */
    .pinit         >  DSP_PROG
    .cinit         >  DSP_PROG
  
    /* EABI sections */
    .binit         >  DSP_PROG
    .init_array    >  DSP_PROG
    .neardata      >  DSP_PROG
    .fardata       >  DSP_PROG
    .rodata        >  DSP_PROG
    .c6xabi.exidx  >  DSP_PROG
    .c6xabi.extab  >  DSP_PROG


}
