/* Script for ld -r: link without relocation */
OUTPUT_FORMAT("a.out-cris")
OUTPUT_ARCH(cris)
ENTRY(__start)
SECTIONS
{
  .text :
  {
   CREATE_OBJECT_SYMBOLS;
    *(.text)
    /* Do not "provide" init-start and fini-start symbols; they might be
       referred to weakly, so the linker would not override the zero
       default.
       FIXME: It's somewhat unexpected to have code emitted by the linker
       script.  Some other mechanism could probably do better.  */
    /* Cater to linking from ELF.  */
    /* We include objects that force alignment of the data segment.
       Unfortunately that sometimes causes a gap between .text and .data,
       which is not detectable since .data does not have a start address
       of itself in the a.out header.  This should only matter for
       testing; for production use, .data is at a "known" location.
       We assume .data does not get an alignment larger than 32 bytes.  */
    /* Deprecated, use __Etext.  */
  }
  /* Any dot-relative start-expression (such as "ALIGN(2)", also including
     the "default" .data alignment expression) will use the initial, raw
     size of .text and will be incorrect if the alignment used is less
     than the alignment for .text (which might depend on input and obj
     format).  FIXME: Seems like a bug in ld.  Seems hard to fix.  Seems
     unimportant.  */
  .data :
  {
    *(.data);
    /* See comment at ALIGN before __Etext.  */
    /* Deprecated, use __Edata.  */
  }
  .bss :
  {
    /* Deprecated, use __Sbss.  */
    *(.bss)
    *(COMMON)
    /* Deprecated, use __Ebss or __Eall as appropriate.  */
  }
  /* Unfortunately, stabs are not mappable from ELF to a.out.
     It can probably be fixed with some amount of work.  */
  /DISCARD/ :
  { *(.stab) *(.stab*) *(.debug) *(.debug*) *(.comment) *(.gnu.warning.*) }
  /* For the rsim and xsim simulators.  */
  /* For elinux.  */
}
