home *** CD-ROM | disk | FTP | other *** search
/ Beginning C++ Through Gam…rogramming (2nd Edition) / BCGP2E.ISO / bloodshed / devcpp-4.9.9.2_setup.exe / i386pe.xu < prev    next >
Text File  |  2005-01-29  |  3KB  |  162 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);
  14.             *(EXCLUDE_FILE (*crtend.o) .ctors);
  15.             *(.ctor);
  16.             *(SORT(.ctors.*));
  17.             *crtend.o (.ctors);
  18.             LONG (0);
  19.         ___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
  20.             LONG (-1);
  21.             *(EXCLUDE_FILE (*crtend.o) .dtors);
  22.             *(.dtor);
  23.             *(SORT(.dtors.*));
  24.             *crtend.o (.dtors);
  25.             LONG (0);
  26.     /* ??? Why is .gcc_exc here?  */
  27.     *(.gcc_except_table)
  28.   }
  29.   /* The Cygwin32 library uses a section to avoid copying certain data
  30.      on fork.  This used to be named ".data".  The linker used
  31.      to include this between __data_start__ and __data_end__, but that
  32.      breaks building the cygwin32 dll.  Instead, we name the section
  33.      ".data_cygwin_nocopy" and explictly include it after __data_end__. */
  34.   .data  :
  35.   {
  36.     *(.data)
  37.     *(.data2)
  38.   }
  39.   .rdata  :
  40.   {
  41.     *(.rdata)
  42.     *(.eh_frame)
  43.     *(.rdata_runtime_pseudo_reloc)
  44.   }
  45.   .pdata  :
  46.   {
  47.     *(.pdata)
  48.   }
  49.   .bss  :
  50.   {
  51.     *(.bss)
  52.     *(COMMON)
  53.   }
  54.   .edata  :
  55.   {
  56.     *(.edata)
  57.   }
  58.   /DISCARD/ :
  59.   {
  60.     *(.debug$S)
  61.     *(.debug$T)
  62.     *(.debug$F)
  63.     *(.drectve)
  64.   }
  65.   .idata  :
  66.   {
  67.     /* This cannot currently be handled with grouped sections.
  68.     See pe.em:sort_sections.  */
  69.   }
  70.   .CRT  :
  71.   {
  72.     /* ___crt_xl_end__ is defined in the TLS Directory support code */
  73.   }
  74.   .tls  :
  75.   {
  76.   }
  77.   .endjunk  :
  78.   {
  79.     /* end is deprecated, don't use it */
  80.   }
  81.   .rsrc  :
  82.   {
  83.     *(.rsrc)
  84.   }
  85.   .reloc  :
  86.   {
  87.     *(.reloc)
  88.   }
  89.   .stab   :
  90.   {
  91.     *(.stab)
  92.   }
  93.   .stabstr   :
  94.   {
  95.     *(.stabstr)
  96.   }
  97.   /* DWARF debug sections.
  98.      Symbols in the DWARF debugging sections are relative to the beginning
  99.      of the section.  Unlike other targets that fake this by putting the
  100.      section VMA at 0, the PE format will not allow it.  */
  101.   /* DWARF 1.1 and DWARF 2.  */
  102.   .debug_aranges   :
  103.   {
  104.     *(.debug_aranges)
  105.   }
  106.   .debug_pubnames   :
  107.   {
  108.     *(.debug_pubnames)
  109.   }
  110.   /* DWARF 2.  */
  111.   .debug_info   :
  112.   {
  113.     *(.debug_info) *(.gnu.linkonce.wi.*)
  114.   }
  115.   .debug_abbrev   :
  116.   {
  117.     *(.debug_abbrev)
  118.   }
  119.   .debug_line   :
  120.   {
  121.     *(.debug_line)
  122.   }
  123.   .debug_frame   :
  124.   {
  125.     *(.debug_frame)
  126.   }
  127.   .debug_str   :
  128.   {
  129.     *(.debug_str)
  130.   }
  131.   .debug_loc   :
  132.   {
  133.     *(.debug_loc)
  134.   }
  135.   .debug_macinfo   :
  136.   {
  137.     *(.debug_macinfo)
  138.   }
  139.   /* SGI/MIPS DWARF 2 extensions.  */
  140.   .debug_weaknames   :
  141.   {
  142.     *(.debug_weaknames)
  143.   }
  144.   .debug_funcnames   :
  145.   {
  146.     *(.debug_funcnames)
  147.   }
  148.   .debug_typenames   :
  149.   {
  150.     *(.debug_typenames)
  151.   }
  152.   .debug_varnames   :
  153.   {
  154.     *(.debug_varnames)
  155.   }
  156.   /* DWARF 3.  */
  157.   .debug_ranges   :
  158.   {
  159.     *(.debug_ranges)
  160.   }
  161. }
  162.