Subversion Repositories Kolibri OS

Rev

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

  1.  
  2.  
  3. OUTPUT_FORMAT(pei-i386)
  4.  
  5. ENTRY("_drvEntry")
  6.  
  7. SECTIONS
  8. {
  9.   . = SIZEOF_HEADERS;
  10.   . = ALIGN(__section_alignment__);
  11.  
  12.   .text  __image_base__ + ( __section_alignment__ < 0x1000 ? . : __section_alignment__ ) :
  13.  
  14.   {
  15.     *(.text) *(.rdata)
  16.   }
  17.  
  18.   .data ALIGN(__section_alignment__) :
  19.   {
  20.     *(.data)
  21.   }
  22.  
  23.   .bss ALIGN(__section_alignment__):
  24.   {
  25.     *(.bss)
  26.     *(COMMON)
  27.   }
  28.  
  29.   /DISCARD/ :
  30.   {
  31.     *(.debug$S)
  32.     *(.debug$T)
  33.     *(.debug$F)
  34.     *(.drectve)
  35.     *(.edata)
  36.     *(.eh_frame)
  37.   }
  38.  
  39.   .idata ALIGN(__section_alignment__):
  40.   {
  41.     SORT(*)(.idata$2)
  42.     SORT(*)(.idata$3)
  43.     /* These zeroes mark the end of the import list. */
  44.     LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);
  45.     SORT(*)(.idata$4)
  46.     SORT(*)(.idata$5)
  47.     SORT(*)(.idata$6)
  48.     SORT(*)(.idata$7)
  49.   }
  50.  
  51.   .reloc ALIGN(__section_alignment__) :
  52.   {
  53.     *(.reloc)
  54.   }
  55.  
  56. }
  57.  
  58.