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.xr < prev    next >
Text File  |  2005-01-29  |  3KB  |  148 lines

  1. /* Script for ld -r: link without relocation */
  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.     /* ??? Why is .gcc_exc here?  */
  13.     *(.gcc_except_table)
  14.   }
  15.   /* The Cygwin32 library uses a section to avoid copying certain data
  16.      on fork.  This used to be named ".data".  The linker used
  17.      to include this between __data_start__ and __data_end__, but that
  18.      breaks building the cygwin32 dll.  Instead, we name the section
  19.      ".data_cygwin_nocopy" and explictly include it after __data_end__. */
  20.   .data  :
  21.   {
  22.     *(.data)
  23.     *(.data2)
  24.   }
  25.   .rdata  :
  26.   {
  27.     *(.rdata)
  28.     *(.eh_frame)
  29.     *(.rdata_runtime_pseudo_reloc)
  30.   }
  31.   .pdata  :
  32.   {
  33.     *(.pdata)
  34.   }
  35.   .bss  :
  36.   {
  37.     *(.bss)
  38.     *(COMMON)
  39.   }
  40.   .edata  :
  41.   {
  42.     *(.edata)
  43.   }
  44.   /DISCARD/ :
  45.   {
  46.     *(.debug$S)
  47.     *(.debug$T)
  48.     *(.debug$F)
  49.     *(.drectve)
  50.   }
  51.   .idata  :
  52.   {
  53.     /* This cannot currently be handled with grouped sections.
  54.     See pe.em:sort_sections.  */
  55.   }
  56.   .CRT  :
  57.   {
  58.     /* ___crt_xl_end__ is defined in the TLS Directory support code */
  59.   }
  60.   .tls  :
  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.   /* DWARF debug sections.
  84.      Symbols in the DWARF debugging sections are relative to the beginning
  85.      of the section.  Unlike other targets that fake this by putting the
  86.      section VMA at 0, the PE format will not allow it.  */
  87.   /* DWARF 1.1 and DWARF 2.  */
  88.   .debug_aranges   :
  89.   {
  90.     *(.debug_aranges)
  91.   }
  92.   .debug_pubnames   :
  93.   {
  94.     *(.debug_pubnames)
  95.   }
  96.   /* DWARF 2.  */
  97.   .debug_info   :
  98.   {
  99.     *(.debug_info) *(.gnu.linkonce.wi.*)
  100.   }
  101.   .debug_abbrev   :
  102.   {
  103.     *(.debug_abbrev)
  104.   }
  105.   .debug_line   :
  106.   {
  107.     *(.debug_line)
  108.   }
  109.   .debug_frame   :
  110.   {
  111.     *(.debug_frame)
  112.   }
  113.   .debug_str   :
  114.   {
  115.     *(.debug_str)
  116.   }
  117.   .debug_loc   :
  118.   {
  119.     *(.debug_loc)
  120.   }
  121.   .debug_macinfo   :
  122.   {
  123.     *(.debug_macinfo)
  124.   }
  125.   /* SGI/MIPS DWARF 2 extensions.  */
  126.   .debug_weaknames   :
  127.   {
  128.     *(.debug_weaknames)
  129.   }
  130.   .debug_funcnames   :
  131.   {
  132.     *(.debug_funcnames)
  133.   }
  134.   .debug_typenames   :
  135.   {
  136.     *(.debug_typenames)
  137.   }
  138.   .debug_varnames   :
  139.   {
  140.     *(.debug_varnames)
  141.   }
  142.   /* DWARF 3.  */
  143.   .debug_ranges   :
  144.   {
  145.     *(.debug_ranges)
  146.   }
  147. }
  148.