Home | History | Annotate | Download | only in ldscripts
      1 /* Script for ld -r: link without relocation */
      2 OUTPUT_FORMAT(pe-x86-64)
      3 SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");
      4 SECTIONS
      5 {
      6   .text  :
      7   {
      8     *(.text)
      9     *(.glue_7t)
     10     *(.glue_7)
     11     /* ??? Why is .gcc_exc here?  */
     12   }
     13   /* The Cygwin32 library uses a section to avoid copying certain data
     14      on fork.  This used to be named ".data".  The linker used
     15      to include this between __data_start__ and __data_end__, but that
     16      breaks building the cygwin32 dll.  Instead, we name the section
     17      ".data_cygwin_nocopy" and explicitly include it after __data_end__. */
     18   .data  :
     19   {
     20     *(.data)
     21     *(.data2)
     22     *(.jcr)
     23   }
     24   .rdata  :
     25   {
     26     *(.rdata)
     27     *(.rdata_runtime_pseudo_reloc)
     28   }
     29   .eh_frame  :
     30   {
     31     *(.eh_frame*)
     32   }
     33   .pdata  :
     34   {
     35     *(.pdata*)
     36   }
     37   .xdata  :
     38   {
     39     *(.xdata*)
     40   }
     41   .bss  :
     42   {
     43     *(.bss)
     44     *(COMMON)
     45   }
     46   .edata  :
     47   {
     48     *(.edata)
     49   }
     50   /DISCARD/ :
     51   {
     52     *(.debug$S)
     53     *(.debug$T)
     54     *(.debug$F)
     55     *(.drectve)
     56   }
     57   .idata  :
     58   {
     59     /* This cannot currently be handled with grouped sections.
     60 	See pep.em:sort_sections.  */
     61   }
     62   .CRT  :
     63   {
     64     /* ___crt_xl_end__ is defined in the TLS Directory support code */
     65   }
     66   .tls  :
     67   {
     68   }
     69   .endjunk  :
     70   {
     71     /* end is deprecated, don't use it */
     72   }
     73   .rsrc  :
     74   {
     75     *(.rsrc)
     76   }
     77   .reloc  :
     78   {
     79     *(.reloc)
     80   }
     81   .stab   :
     82   {
     83     *(.stab)
     84   }
     85   .stabstr   :
     86   {
     87     *(.stabstr)
     88   }
     89   /* DWARF debug sections.
     90      Symbols in the DWARF debugging sections are relative to the beginning
     91      of the section.  Unlike other targets that fake this by putting the
     92      section VMA at 0, the PE format will not allow it.  */
     93   /* DWARF 1.1 and DWARF 2.  */
     94   .debug_aranges   :
     95   {
     96     *(.debug_aranges)
     97   }
     98   .debug_pubnames   :
     99   {
    100     *(.debug_pubnames)
    101   }
    102   .debug_pubtypes   :
    103   {
    104     *(.debug_pubtypes)
    105   }
    106   /* DWARF 2.  */
    107   .debug_info   :
    108   {
    109     *(.debug_info) *(.gnu.linkonce.wi.*)
    110   }
    111   .debug_abbrev   :
    112   {
    113     *(.debug_abbrev)
    114   }
    115   .debug_line   :
    116   {
    117     *(.debug_line)
    118   }
    119   .debug_frame   :
    120   {
    121     *(.debug_frame*)
    122   }
    123   .debug_str   :
    124   {
    125     *(.debug_str)
    126   }
    127   .debug_loc   :
    128   {
    129     *(.debug_loc)
    130   }
    131   .debug_macinfo   :
    132   {
    133     *(.debug_macinfo)
    134   }
    135   /* SGI/MIPS DWARF 2 extensions.  */
    136   .debug_weaknames   :
    137   {
    138     *(.debug_weaknames)
    139   }
    140   .debug_funcnames   :
    141   {
    142     *(.debug_funcnames)
    143   }
    144   .debug_typenames   :
    145   {
    146     *(.debug_typenames)
    147   }
    148   .debug_varnames   :
    149   {
    150     *(.debug_varnames)
    151   }
    152   .debug_macro   :
    153   {
    154     *(.debug_macro)
    155   }
    156   /* DWARF 3.  */
    157   .debug_ranges   :
    158   {
    159     *(.debug_ranges)
    160   }
    161   /* DWARF 4.  */
    162   .debug_types   :
    163   {
    164     *(.debug_types) *(.gnu.linkonce.wt.*)
    165   }
    166 }
    167