home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 186 / DPCS0803.ISO / Café / Dev-C++ / devcpp4980.exe / $INSTDIR / mingw32 / lib / ldscripts / i386pe.xu < prev   
Encoding:
Text File  |  2003-05-15  |  1.6 KB  |  84 lines

  1. /* Script for ld -Ur: link w/out relocation, do create constructors */
  2. OUTPUT_FORMAT(pe-i386)
  3. SEARCH_DIR("/mingw/mingw32/lib"); SEARCH_DIR("/mingw/lib"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");
  4. ENTRY(_mainCRTStartup)
  5. SECTIONS
  6. {
  7.   .text  :
  8.   {
  9.     *(.text)
  10.     *(.glue_7t)
  11.     *(.glue_7)
  12.      ___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
  13.             LONG (-1); *(SORT(.ctors.*)); *(.ctors); *(.ctor); LONG (0);
  14.      ___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
  15.             LONG (-1); *(SORT(.dtors.*)); *(.dtors); *(.dtor);  LONG (0);
  16.     /* ??? Why is .gcc_exc here?  */
  17.     *(.gcc_except_table)
  18.   }
  19.   /* The Cygwin32 library uses a section to avoid copying certain data
  20.      on fork.  This used to be named ".data".  The linker used
  21.      to include this between __data_start__ and __data_end__, but that
  22.      breaks building the cygwin32 dll.  Instead, we name the section
  23.      ".data_cygwin_nocopy" and explictly include it after __data_end__. */
  24.   .data  :
  25.   {
  26.     *(.data)
  27.     *(.data2)
  28.   }
  29.   .rdata  :
  30.   {
  31.     *(.rdata)
  32.     *(.eh_frame)
  33.     *(.rdata_runtime_pseudo_reloc)
  34.   }
  35.   .pdata  :
  36.   {
  37.     *(.pdata)
  38.   }
  39.   .bss  :
  40.   {
  41.     *(.bss)
  42.     *(COMMON)
  43.   }
  44.   .edata  :
  45.   {
  46.     *(.edata)
  47.   }
  48.   /DISCARD/ :
  49.   {
  50.     *(.debug$S)
  51.     *(.debug$T)
  52.     *(.debug$F)
  53.     *(.drectve)
  54.   }
  55.   .idata  :
  56.   {
  57.     /* This cannot currently be handled with grouped sections.
  58.     See pe.em:sort_sections.  */
  59.   }
  60.   .CRT  :
  61.   {
  62.   }
  63.   .endjunk  :
  64.   {
  65.     /* end is deprecated, don't use it */
  66.   }
  67.   .rsrc  :
  68.   {
  69.     *(.rsrc)
  70.   }
  71.   .reloc  :
  72.   {
  73.     *(.reloc)
  74.   }
  75.   .stab   :
  76.   {
  77.     [ .stab ]
  78.   }
  79.   .stabstr   :
  80.   {
  81.     [ .stabstr ]
  82.   }
  83. }
  84.