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