preliminary comment out the self-modifying code for RtlPrefetchMemoryNonTemporal
[reactos.git] / reactos / ntoskrnl / ntoskrnl.lnk
index 5406695..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,6 +57,7 @@ SECTIONS
     *(.debug$F)
     *(.drectve)
   }
+
   .idata BLOCK(__section_alignment__) :
   {
     /* This cannot currently be handled with grouped sections.
@@ -59,7 +66,7 @@ SECTIONS
     SORT(*)(.idata$3)
     /* These zeroes mark the end of the import list.  */
     LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);
-    SORT(*)(.idata$4)
+    SORT(*)(.idata$4)  
     SORT(*)(.idata$5)
     SORT(*)(.idata$6)
     SORT(*)(.idata$7)
@@ -80,12 +87,12 @@ SECTIONS
     *(COMMON)
     __bss_end__ = . ;
   }
-/*
   .reloc BLOCK(__section_alignment__) :
   {                                    
-    *(.reloc) 
+    *(.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 ]