- Explicitly make the kernel .rsrc/Resource Directory non-discardable and non-pageabl...
authorStefan Ginsberg <stefanginsberg@gmail.com>
Thu, 3 Sep 2015 09:29:26 +0000 (09:29 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Thu, 3 Sep 2015 09:29:26 +0000 (09:29 +0000)
svn path=/trunk/; revision=68930

reactos/ntoskrnl/CMakeLists.txt
reactos/ntoskrnl/ntkrnlmp/CMakeLists.txt

index c2ba5f2..b21b53f 100644 (file)
@@ -28,6 +28,7 @@ set_subsystem(ntoskrnl native)
 
 if(MSVC)
     set_image_base(ntoskrnl 0x00400000)
+    add_target_link_flags(ntoskrnl "/SECTION:.rsrc,!DP") #Accessed from bugcheck code
 else()
     if(GDB)
         set_image_base(ntoskrnl 0x00800000)
index 4f64c66..a7cf46a 100644 (file)
@@ -28,6 +28,7 @@ set_subsystem(ntkrnlmp native)
 
 if(MSVC)
     set_image_base(ntkrnlmp 0x00400000)
+    add_target_link_flags(ntoskrnl "/SECTION:.rsrc,!DP") #Accessed from bugcheck code
 else()
     set_image_base(ntkrnlmp 0x80800000)
 endif()