[CMAKE]
[reactos.git] / ntoskrnl / ntoskrnl_i386.lnk
index c759bab..8dac6c1 100644 (file)
@@ -19,12 +19,6 @@ SECTIONS
      *(.gcc_exc)
      __text_end__ = .;
     *(.gcc_except_table)
-  }
-  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
@@ -50,13 +44,6 @@ SECTIONS
   {
     *(.edata)
   }
-  /DISCARD/ :
-  {
-    *(.debug$S)
-    *(.debug$T)
-    *(.debug$F)
-    *(.drectve)
-  }
 
   .idata BLOCK(__section_alignment__) :
   {
@@ -93,13 +80,47 @@ SECTIONS
      /* These zeroes mark the end of the reloc section.  */
      LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);
   }
-  .stab BLOCK(__section_alignment__) (NOLOAD) :
+  .debug_aranges BLOCK(__section_alignment__) :
+  {
+    *(.debug_aranges)
+  }
+  .debug_abbrev BLOCK(__section_alignment__) :
+  {
+    *(.debug_abbrev)
+  }
+  .debug_frame BLOCK(__section_alignment__) :
+  {
+    *(.debug_frame)
+  }
+  .debug_info BLOCK(__section_alignment__) :
   {
-    [ .stab ]
+    *(.debug_info)
   }
-  .stabstr BLOCK(__section_alignment__) (NOLOAD) :
+  .debug_line BLOCK(__section_alignment__) :
   {
-    [ .stabstr ]
+    *(.debug_line)
+  }
+  .debug_loc BLOCK(__section_alignment__) :
+  {
+    *(.debug_loc)
+  }
+  .debug_pubnames BLOCK(__section_alignment__) :
+  {
+       *(.debug_pubnames)
+  }
+  .debug_ranges BLOCK(__section_alignment__) :
+  {
+       *(.debug_ranges)
+  }
+  .debug_str BLOCK(__section_alignment__) :
+  {
+    *(.debug_str)
+  }
+  INIT BLOCK(__section_alignment__) :
+  {
+    __init_start__ = . ;
+    *(INIT)
+    __init_end__ = . ;
   }
 }