Author: tkreuzer
Date: Wed Nov 12 08:43:25 2008
New Revision: 37306
URL:
http://svn.reactos.org/svn/reactos?rev=37306&view=rev
Log:
Warn if a section doesn't fit into the ImageSize
Modified:
branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/reactos/imageldr.c
Modified: branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/reactos/imageldr.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/boot/…
==============================================================================
--- branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/reactos/imageldr.c
[iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/reactos/imageldr.c
[iso-8859-1] Wed Nov 12 08:43:25 2008
@@ -543,6 +543,12 @@
Section[i].Misc.VirtualSize);
}
}
+ else
+ {
+ DbgPrint("Section %s in %s doesn't fit: VA: %lx, Size: %lx\n",
+ Section[i].Name, Name, Section[i].VirtualAddress,
+ Section[i].Misc.VirtualSize);
+ }
}
/* Calculate Difference between Real Base and Compiled Base*/