KJK::Hyperion <noog(a)libero.it>
Mark ELF sections as non-paged for now.
Fix 64bit compilation warning in PeFmtCreateSection.
Modified: trunk/reactos/ntoskrnl/mm/elf.c
Modified: trunk/reactos/ntoskrnl/mm/pe.c
_____
Modified: trunk/reactos/ntoskrnl/mm/elf.c
--- trunk/reactos/ntoskrnl/mm/elf.c 2005-01-12 14:57:03 UTC (rev
12969)
+++ trunk/reactos/ntoskrnl/mm/elf.c 2005-01-12 15:00:32 UTC (rev
12970)
@@ -628,6 +628,12 @@
else
pssSegments[j].Characteristics = IMAGE_SCN_CNT_INITIALIZED_DATA;
+ /*
+ FIXME: see the TODO above. This is the safest way to load ELF
drivers, for
+ now, if a bit wasteful of memory
+ */
+ pssSegments[j].Characteristics |= IMAGE_SCN_MEM_NOT_PAGED;
+
/* Copy-on-write */
pssSegments[j].WriteCopy = TRUE;
_____
Modified: trunk/reactos/ntoskrnl/mm/pe.c
--- trunk/reactos/ntoskrnl/mm/pe.c 2005-01-12 14:57:03 UTC (rev
12969)
+++ trunk/reactos/ntoskrnl/mm/pe.c 2005-01-12 15:00:32 UTC (rev
12970)
@@ -343,7 +343,7 @@
}
else
{
- SIZE_T cbOptHeaderOffsetSize;
+ ULONG32 cbOptHeaderOffsetSize;
nStatus = STATUS_INVALID_IMAGE_FORMAT;