Subversion Repositories Kolibri OS

Rev

Go to most recent revision | 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.     *(.text)
  15.     *(SORT(.text$*))
  16.     *(.text.*)
  17.     . = ALIGN(16);
  18.     *(.rdata)
  19.     *(SORT(.rdata$*))
  20.     . = ALIGN(16);
  21.     *(.data)
  22.     *(.data2)
  23.     *(SORT(.data$*))
  24.     . = ALIGN(16);
  25.     *(.bss)
  26.     *(COMMON)
  27.   }
  28.  
  29.  
  30.   .idata ALIGN(__section_alignment__):
  31.   {
  32.     SORT(*)(.idata$2)
  33.     SORT(*)(.idata$3)
  34.     /* These zeroes mark the end of the import list. */
  35.     LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);
  36.     SORT(*)(.idata$4)
  37.     SORT(*)(.idata$5)
  38.     SORT(*)(.idata$6)
  39.     SORT(*)(.idata$7)
  40.   }
  41.  
  42.   .reloc ALIGN(__section_alignment__) :
  43.   {
  44.     *(.reloc)
  45.   }
  46.  
  47.   /DISCARD/ :
  48.   {
  49.     *(.debug$S)
  50.     *(.debug$T)
  51.     *(.debug$F)
  52.     *(.drectve)
  53.     *(.edata)
  54.     *(.note.GNU-stack)
  55.     *(.comment)
  56.     *(.eh_frame)
  57.     *(.debug_abbrev)
  58.     *(.debug_info)
  59.     *(.debug_line)
  60.     *(.debug_frame)
  61.     *(.debug_loc)
  62.     *(.debug_pubnames)
  63.     *(.debug_aranges)
  64.     *(.debug_ranges)
  65.   }
  66.  
  67.  
  68. }
  69.  
  70.