/* Script for ld -Ur: link w/out relocation, do create constructors */
OUTPUT_FORMAT("elf32-xc16x")
OUTPUT_ARCH(xc16x:xc16xl)
ENTRY("_start")
MEMORY
{
	vectarea : o =0xc00000, l = 0x0300

	introm    : o = 0xc00300, l = 0x16000
	/* The stack starts at the top of main ram.  */

	dram   : o = 0x8000 , l = 0xffff
	/* At the very top of the address space is the 8-bit area.  */

         ldata  : o =0x4000 ,l = 0x0200
}
SECTIONS
{
/*.vects :
        {
        *(.vects)
       }  */
.init :
        {
          *(.init)
        }
.text :
	{
	  *(.rodata)
	  *(.text.*)
	  *(.text)

	}
.data :
	{
	  *(.data)
	  *(.data.*)


	}
.bss :
	{

	  *(.bss)
	  *(COMMON)

	}
 .ldata :
         {
          *(.ldata)
         }
  .vects :
          {
          *(.vects)
       }
}
