Write actual RVA values

This commit is contained in:
Michael Becker 2015-05-11 23:03:47 -04:00
parent c23d58be92
commit 6f792d1f45

View File

@ -517,7 +517,9 @@ Watcom C++ 10.6 W?h$n(i)v W?h$n(ia)v W?h$n()v
peoh.imageSize = 16384;
peoh.headerSize = 512;
peoh.subsystem = 2;
peoh.rvaCount = 16;
uint[] rvas = new uint[16];
peoh.rvaCount = (uint)rvas.Length;
if (peoh.enabled)
{
@ -552,6 +554,12 @@ Watcom C++ 10.6 W?h$n(i)v W?h$n(ia)v W?h$n()v
#endregion
#endregion
// write the RVA values
for (uint i = 0; i < peoh.rvaCount; i++)
{
bw.WriteUInt32(rvas[(int)i]);
}
#region Sections
{
System.Collections.Generic.List<PESectionHeader> peshes = new System.Collections.Generic.List<PESectionHeader>();