Subversion Repositories Kolibri OS

Rev

Rev 1906 | Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. OUTPUT_FORMAT(pei-i386)
  3.  
  4. SECTIONS
  5. {
  6.   . = SIZEOF_HEADERS;
  7.   . = ALIGN(__section_alignment__);
  8.  
  9.   .text  __image_base__ + . :
  10.   {
  11.  
  12.         *(.init)
  13.         *(.text)
  14.         *(SORT(.text$*))
  15.         *(.text.*)
  16.         *(.glue_7t)
  17.         *(.glue_7)
  18.         ___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
  19.                         LONG (-1);*(.ctors); *(.ctor); *(SORT(.ctors.*));  LONG (0);
  20.         ___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
  21.                         LONG (-1); *(.dtors); *(.dtor); *(SORT(.dtors.*));  LONG (0);
  22.         *(.fini)
  23.     /* ??? Why is .gcc_exc here?  */
  24.         *(.gcc_exc)
  25.         PROVIDE (etext = .);
  26.         *(.gcc_except_table)
  27.   }
  28.  
  29.     .rdata ALIGN(__section_alignment__):
  30.     {
  31.         *(.rdata)
  32.         *(SORT(.rdata$*))
  33.     ___RUNTIME_PSEUDO_RELOC_LIST__ = .;
  34.     __RUNTIME_PSEUDO_RELOC_LIST__ = .;
  35.     *(.rdata_runtime_pseudo_reloc)
  36.     ___RUNTIME_PSEUDO_RELOC_LIST_END__ = .;
  37.     __RUNTIME_PSEUDO_RELOC_LIST_END__ = .;
  38.   }
  39.     .CRT ALIGN(__section_alignment__):
  40.     {
  41.          ___crt_xc_start__ = . ;
  42.         *(SORT(.CRT$XC*))  /* C initialization */
  43.         ___crt_xc_end__ = . ;
  44.         ___crt_xi_start__ = . ;
  45.         *(SORT(.CRT$XI*))  /* C++ initialization */
  46.         ___crt_xi_end__ = . ;
  47.         ___crt_xl_start__ = . ;
  48.         *(SORT(.CRT$XL*))  /* TLS callbacks */
  49.     /* ___crt_xl_end__ is defined in the TLS Directory support code */
  50.         ___crt_xp_start__ = . ;
  51.         *(SORT(.CRT$XP*))  /* Pre-termination */
  52.         ___crt_xp_end__ = . ;
  53.         ___crt_xt_start__ = . ;
  54.         *(SORT(.CRT$XT*))  /* Termination */
  55.         ___crt_xt_end__ = . ;
  56.     }
  57.  
  58.   .data ALIGN(__section_alignment__):
  59.   {
  60.      PROVIDE ( __data_start__ = .) ;
  61.      *(.data)
  62.      *(.data2)
  63.      *(SORT(.data$*))
  64.      *(.jcr)
  65.      __CRT_MT = .;
  66.      LONG(0);
  67.      PROVIDE ( __data_end__ = .) ;
  68.      *(.data_cygwin_nocopy)
  69.   }
  70.  
  71.     .eh_frame ALIGN(__section_alignment__):
  72.   {
  73.         *(.eh_frame)
  74.         ___iend = . ;
  75.     }
  76.  
  77.   .bss ALIGN(__section_alignment__):
  78.   {
  79.     *(.bss)
  80.     *(COMMON)
  81.   }
  82.  
  83.   .edata ALIGN(__section_alignment__):
  84.   {
  85.     *(.edata)
  86.   }
  87.  
  88.   /DISCARD/ :
  89.   {
  90.     *(.debug$S)
  91.     *(.debug$T)
  92.     *(.debug$F)
  93.     *(.drectve)
  94.     *(.note.GNU-stack)
  95.     *(.comment)
  96.     *(.debug_abbrev)
  97.     *(.debug_info)
  98.     *(.debug_line)
  99.     *(.debug_frame)
  100.     *(.debug_loc)
  101.     *(.debug_pubnames)
  102.     *(.debug_aranges)
  103.     *(.debug_ranges)
  104.   }
  105.  
  106.   .idata ALIGN(__section_alignment__):
  107.   {
  108.     SORT(*)(.idata$2)
  109.     SORT(*)(.idata$3)
  110.     /* These zeroes mark the end of the import list. */
  111.     LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);
  112.     SORT(*)(.idata$4)
  113.     SORT(*)(.idata$5)
  114.     SORT(*)(.idata$6)
  115.     SORT(*)(.idata$7)
  116.   }
  117.  
  118.   .reloc ALIGN(__section_alignment__) :
  119.   {
  120.     *(.reloc)
  121.   }
  122.  
  123. }
  124.  
  125.