Subversion Repositories Kolibri OS

Rev

Blame | 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.   }
  37.  
  38.   .idata ALIGN(__section_alignment__):
  39.   {
  40.     SORT(*)(.idata$2)
  41.     SORT(*)(.idata$3)
  42.     /* These zeroes mark the end of the import list. */
  43.     LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);
  44.     SORT(*)(.idata$4)
  45.     SORT(*)(.idata$5)
  46.     SORT(*)(.idata$6)
  47.     SORT(*)(.idata$7)
  48.   }
  49.  
  50.   .reloc ALIGN(__section_alignment__) :
  51.   {
  52.     *(.reloc)
  53.   }
  54.  
  55. }
  56.  
  57.