Subversion Repositories Kolibri OS

Rev

Rev 4872 | Blame | Compare with Previous | Last modification | View Log | RSS feed

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