Home | History | Annotate | Download | only in ldscripts
      1 /* Script for ld -Ur: link w/out relocation, do create constructors */
      2 /* Copyright (C) 2014 Free Software Foundation, Inc.
      3    Copying and distribution of this script, with or without modification,
      4    are permitted in any medium without royalty provided the copyright
      5    notice and this notice are preserved.  */
      6 OUTPUT_FORMAT(pe-x86-64)
      7 SEARCH_DIR("=/tmp/build-mingw64-toolchain-joshualang/install-x86_64-linux-gnu/x86_64-w64-mingw32/x86_64-w64-mingw32/lib"); SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");
      8 SECTIONS
      9 {
     10   .text  :
     11   {
     12     *(.text)
     13     *(.glue_7t)
     14     *(.glue_7)
     15     . = ALIGN(8);
     16      ___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
     17 			LONG (-1); LONG (-1);*(.ctors); *(.ctor); *(SORT(.ctors.*));  LONG (0); LONG (0);
     18      ___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
     19 			LONG (-1); LONG (-1); *(.dtors); *(.dtor); *(SORT(.dtors.*));  LONG (0); LONG (0);
     20     /* ??? Why is .gcc_exc here?  */
     21   }
     22   /* The Cygwin32 library uses a section to avoid copying certain data
     23      on fork.  This used to be named ".data".  The linker used
     24      to include this between __data_start__ and __data_end__, but that
     25      breaks building the cygwin32 dll.  Instead, we name the section
     26      ".data_cygwin_nocopy" and explicitly include it after __data_end__. */
     27   .data  :
     28   {
     29     *(.data)
     30     *(.data2)
     31     *(.jcr)
     32   }
     33   .rdata  :
     34   {
     35     *(.rdata)
     36     *(.rdata_runtime_pseudo_reloc)
     37   }
     38   .eh_frame  :
     39   {
     40     *(.eh_frame*)
     41   }
     42   .pdata  :
     43   {
     44     *(.pdata*)
     45   }
     46   .xdata  :
     47   {
     48     *(.xdata*)
     49   }
     50   .bss  :
     51   {
     52     *(.bss)
     53     *(COMMON)
     54   }
     55   .edata  :
     56   {
     57     *(.edata)
     58   }
     59   /DISCARD/ :
     60   {
     61     *(.debug$S)
     62     *(.debug$T)
     63     *(.debug$F)
     64     *(.drectve)
     65   }
     66   .idata  :
     67   {
     68     /* This cannot currently be handled with grouped sections.
     69 	See pep.em:sort_sections.  */
     70   }
     71   .CRT  :
     72   {
     73     /* ___crt_xl_end__ is defined in the TLS Directory support code */
     74   }
     75   /* Windows TLS expects .tls$AAA to be at the start and .tls$ZZZ to be
     76      at the end of the .tls section.  This is important because _tls_start MUST
     77      be at the beginning of the section to enable SECREL32 relocations with TLS
     78      data.  */
     79   .tls  :
     80   {
     81   }
     82   .endjunk  :
     83   {
     84     /* end is deprecated, don't use it */
     85   }
     86   .rsrc  : SUBALIGN(4)
     87   {
     88     *(.rsrc)
     89   }
     90   .reloc  :
     91   {
     92     *(.reloc)
     93   }
     94   .stab   :
     95   {
     96     *(.stab)
     97   }
     98   .stabstr   :
     99   {
    100     *(.stabstr)
    101   }
    102   /* DWARF debug sections.
    103      Symbols in the DWARF debugging sections are relative to the beginning
    104      of the section.  Unlike other targets that fake this by putting the
    105      section VMA at 0, the PE format will not allow it.  */
    106   /* DWARF 1.1 and DWARF 2.  */
    107   .debug_aranges   :
    108   {
    109     *(.debug_aranges)
    110   }
    111   .zdebug_aranges   :
    112   {
    113     *(.zdebug_aranges)
    114   }
    115   .debug_pubnames   :
    116   {
    117     *(.debug_pubnames)
    118   }
    119   .zdebug_pubnames   :
    120   {
    121     *(.zdebug_pubnames)
    122   }
    123   .debug_pubtypes   :
    124   {
    125     *(.debug_pubtypes)
    126   }
    127   .zdebug_pubtypes   :
    128   {
    129     *(.zdebug_pubtypes)
    130   }
    131   /* DWARF 2.  */
    132   .debug_info   :
    133   {
    134     *(.debug_info)
    135   }
    136   .zdebug_info   :
    137   {
    138     *(.zdebug_info)
    139   }
    140   .debug_abbrev   :
    141   {
    142     *(.debug_abbrev)
    143   }
    144   .zdebug_abbrev   :
    145   {
    146     *(.zdebug_abbrev)
    147   }
    148   .debug_line   :
    149   {
    150     *(.debug_line)
    151   }
    152   .zdebug_line   :
    153   {
    154     *(.zdebug_line)
    155   }
    156   .debug_frame   :
    157   {
    158     *(.debug_frame)
    159   }
    160   .zdebug_frame   :
    161   {
    162     *(.zdebug_frame)
    163   }
    164   .debug_str   :
    165   {
    166     *(.debug_str)
    167   }
    168   .zdebug_str   :
    169   {
    170     *(.zdebug_str)
    171   }
    172   .debug_loc   :
    173   {
    174     *(.debug_loc)
    175   }
    176   .zdebug_loc   :
    177   {
    178     *(.zdebug_loc)
    179   }
    180   .debug_macinfo   :
    181   {
    182     *(.debug_macinfo)
    183   }
    184   .zdebug_macinfo   :
    185   {
    186     *(.zdebug_macinfo)
    187   }
    188   /* SGI/MIPS DWARF 2 extensions.  */
    189   .debug_weaknames   :
    190   {
    191     *(.debug_weaknames)
    192   }
    193   .zdebug_weaknames   :
    194   {
    195     *(.zdebug_weaknames)
    196   }
    197   .debug_funcnames   :
    198   {
    199     *(.debug_funcnames)
    200   }
    201   .zdebug_funcnames   :
    202   {
    203     *(.zdebug_funcnames)
    204   }
    205   .debug_typenames   :
    206   {
    207     *(.debug_typenames)
    208   }
    209   .zdebug_typenames   :
    210   {
    211     *(.zdebug_typenames)
    212   }
    213   .debug_varnames   :
    214   {
    215     *(.debug_varnames)
    216   }
    217   .zdebug_varnames   :
    218   {
    219     *(.zdebug_varnames)
    220   }
    221   .debug_macro   :
    222   {
    223     *(.debug_macro)
    224   }
    225   .zdebug_macro   :
    226   {
    227     *(.zdebug_macro)
    228   }
    229   /* DWARF 3.  */
    230   .debug_ranges   :
    231   {
    232     *(.debug_ranges)
    233   }
    234   .zdebug_ranges   :
    235   {
    236     *(.zdebug_ranges)
    237   }
    238   /* DWARF 4.  */
    239   .debug_types   :
    240   {
    241     *(.debug_types)
    242   }
    243   .zdebug_types   :
    244   {
    245     *(.zdebug_types)
    246   }
    247 }
    248