/* Script for ld -Ur: link w/out relocation, do create constructors */
/* Linker script for TMS320C3x object file (ld -r).  */
OUTPUT_FORMAT("coff2-tic4x")
OUTPUT_ARCH("tic3x")
SEARCH_DIR("/usr/pkg/cross/i386-linux/lib");
ENTRY(_start)
/* In the small memory model the .data and .bss sections must be contiguous
   when loaded and fit within the same page.   The DP register is loaded
   with the page address.  */
SECTIONS
{
  /* Reset, interrupt, and trap vectors.  */
  .vectors  : {
    *(.vectors)
  }
  /* Constants.  */
  .const : {
    *(.const)
  }
  /* Program code.  */
  .text : {
    *(.text)
     ___CTOR_LIST__ = .;
     LONG(___CTOR_END__ - ___CTOR_LIST__ - 2)
     *(.ctors)
     LONG(0);
     ___CTOR_END__  = .;
     ___DTOR_LIST__ = .;
     LONG(___DTOR_END__ - ___DTOR_LIST__ - 2)
     *(.dtors)
     LONG(0)
     ___DTOR_END__  = .;
  }
  /* Global initialised variables.  */
  .data :
  {
    *(.data)
  }
  /* Global uninitialised variables.  */
  .bss : {

    *(.bss)
    *(COMMON)
  }
  /* Heap.  */
  .heap :
  {

    ;
  }
  /* Stack (grows upward).  */
  .stack :
  {

    *(.stack)
    ;
  }
  .stab 0  :
  {
    [ .stab ]
  }
  .stabstr 0  :
  {
    [ .stabstr ]
  }
}
