fixed uninitialized variable warning
[reactos.git] / reactos / ntoskrnl / ntoskrnl.lnk
index 70d6f6c..c759bab 100644 (file)
@@ -20,7 +20,13 @@ SECTIONS
      __text_end__ = .;
     *(.gcc_except_table)
   }
-  /* The Cygwin32 library uses a section to avoid copying certain data
+  init BLOCK(__section_alignment__) :
+  {
+    __init_start__ = . ;
+    *(init)
+    __init_end__ = . ;
+  }
+   /* The Cygwin32 library uses a section to avoid copying certain data
      on fork.  This used to be named ".data".  The linker used
      to include this between __data_start__ and __data_end__, but that
      breaks building the cygwin32 dll.  Instead, we name the section
@@ -51,14 +57,15 @@ SECTIONS
     *(.debug$F)
     *(.drectve)
   }
-  /DISCARD/ :
+
+  .idata BLOCK(__section_alignment__) :
   {
     /* This cannot currently be handled with grouped sections.
        See pe.em:sort_sections.  */
     SORT(*)(.idata$2)
     SORT(*)(.idata$3)
     /* These zeroes mark the end of the import list.  */
-/*    LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);*/
+    LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);
     SORT(*)(.idata$4)  
     SORT(*)(.idata$5)
     SORT(*)(.idata$6)
@@ -80,10 +87,12 @@ SECTIONS
     *(COMMON)
     __bss_end__ = . ;
   }
-  /DISCARD/ :
-  {
+  .reloc BLOCK(__section_alignment__) :
+  {                                    
     *(.reloc)
-  }  
+     /* These zeroes mark the end of the reloc section.  */
+     LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);
+  }
   .stab BLOCK(__section_alignment__) (NOLOAD) :
   {
     [ .stab ]