/* Script for ld -r: link without relocation */
SEARCH_DIR("/usr/pkg/cross/i386-linux/lib");
ENTRY(_mainCRTStartup)
SECTIONS
{
  .text  :
  {
    *(.text)
    *(.glue_7t)
    *(.glue_7)
    /* ??? Why is .gcc_exc here?  */
    *(.gcc_except_table)
  }
  /* The Cygwin32 library uses a section to avoid copying certain data
     on fork.  This used to be named ".data".  The linker used
     to include this between __data_start__ and __data_end__, but that
     breaks building the cygwin32 dll.  Instead, we name the section
     ".data_cygwin_nocopy" and explictly include it after __data_end__. */
  .data  :
  {
    *(.data)
    *(.data2)
  }
  .bss  :
  {
    *(.bss)
    *(COMMON)
  }
  .rdata  :
  {
    *(.rdata)
    *(.eh_frame)
  }
  .edata  :
  {
    *(.edata)
  }
  /DISCARD/ :
  {
    *(.debug$S)
    *(.debug$T)
    *(.debug$F)
    *(.drectve)
  }
  .idata  :
  {
    /* This cannot currently be handled with grouped sections.
	See pe.em:sort_sections.  */
  }
  .CRT  :
  {
  }
  .endjunk  :
  {
    /* end is deprecated, don't use it */
  }
  .reloc  :
  {
    *(.reloc)
  }
  .rsrc  :
  {
    *(.rsrc)
  }
  .stab   :
  {
    [ .stab ]
  }
  .stabstr   :
  {
    [ .stabstr ]
  }
  .stack 0x80000 :
  {
    _stack = .;
    *(.stack)
  }
}
