Author: tkreuzer
Date: Sat Dec 6 07:43:35 2008
New Revision: 37895
URL:
http://svn.reactos.org/svn/reactos?rev=37895&view=rev
Log:
recalculate VA and PA of .pdata section
Modified:
branches/ros-amd64-bringup/reactos/tools/rsym/rsym64.c
Modified: branches/ros-amd64-bringup/reactos/tools/rsym/rsym64.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/tools…
==============================================================================
--- branches/ros-amd64-bringup/reactos/tools/rsym/rsym64.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/tools/rsym/rsym64.c [iso-8859-1] Sat Dec 6
07:43:35 2008
@@ -450,9 +450,11 @@
pshp = File->pdata.psh = &File->SectionHeaders[File->pdata.idx];
memcpy(pshp->Name, ".pdata", 7);
pshp->Misc.VirtualSize = (File->cFuncs + 1) * sizeof(RUNTIME_FUNCTION);
-// pshp->VirtualAddress =
+ pshp->VirtualAddress = File->SectionHeaders[File->pdata.idx -
1].VirtualAddress +
+ File->SectionHeaders[File->pdata.idx -
1].SizeOfRawData;
pshp->SizeOfRawData = ROUND_UP(pshp->Misc.VirtualSize, FileAlignment);
-// pshp->PointerToRawData =
+ pshp->PointerToRawData = File->SectionHeaders[File->pdata.idx -
1].PointerToRawData +
+ File->SectionHeaders[File->pdata.idx -
1].SizeOfRawData;
pdata = File->pdata.p = malloc(pshp->SizeOfRawData);
memset(File->pdata.p, pshp->SizeOfRawData, 0);