Subversion Repositories Kolibri OS

Rev

Rev 1179 | Go to most recent revision | 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.   .reloc ALIGN(__section_alignment__) :
  24.   {
  25.     *(.reloc)
  26.   }
  27.  
  28.   .idata ALIGN(__section_alignment__):
  29.   {
  30.     SORT(*)(.idata$2)
  31.     SORT(*)(.idata$3)
  32.     /* These zeroes mark the end of the import list. */
  33.     LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);
  34.     SORT(*)(.idata$4)
  35.     SORT(*)(.idata$5)
  36.     SORT(*)(.idata$6)
  37.     SORT(*)(.idata$7)
  38.   }
  39.  
  40.   .bss ALIGN(__section_alignment__):
  41.   {
  42.     *(.bss)
  43.     *(COMMON)
  44.   }
  45.  
  46.   /DISCARD/ :
  47.   {
  48.     *(.debug$S)
  49.     *(.debug$T)
  50.     *(.debug$F)
  51.     *(.drectve)
  52.     *(.edata)
  53.   }
  54. }
  55.  
  56.