summaryrefslogtreecommitdiffstats
path: root/MdePkg
diff options
context:
space:
mode:
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2012-03-16 03:22:38 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2012-03-16 03:22:38 +0000
commitbe30ddf795e575696d8da0636bac8c252355a1f1 (patch)
tree9b53fb5184ce2180627a1e420abd43088d991b2b /MdePkg
parent793ae6eeb3de65d20598c1dbef4cc99bcf51cf33 (diff)
downloadedk2-be30ddf795e575696d8da0636bac8c252355a1f1.tar.gz
edk2-be30ddf795e575696d8da0636bac8c252355a1f1.tar.bz2
edk2-be30ddf795e575696d8da0636bac8c252355a1f1.zip
Update the offset when read every debug entries info.
Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13104 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/BasePeCoffLib/BasePeCoff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MdePkg/Library/BasePeCoffLib/BasePeCoff.c b/MdePkg/Library/BasePeCoffLib/BasePeCoff.c
index 4bf5b7cbbc..8b2a78e448 100644
--- a/MdePkg/Library/BasePeCoffLib/BasePeCoff.c
+++ b/MdePkg/Library/BasePeCoffLib/BasePeCoff.c
@@ -2,7 +2,7 @@
Base PE/COFF loader supports loading any PE32/PE32+ or TE image, but
only supports relocating IA32, x64, IPF, and EBC images.
- Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -355,7 +355,7 @@ PeCoffLoaderGetImageInfo (
Size = sizeof (EFI_IMAGE_DEBUG_DIRECTORY_ENTRY);
Status = ImageContext->ImageRead (
ImageContext->Handle,
- DebugDirectoryEntryFileOffset,
+ DebugDirectoryEntryFileOffset + Index,
&Size,
&DebugEntry
);
@@ -442,7 +442,7 @@ PeCoffLoaderGetImageInfo (
Size = sizeof (EFI_IMAGE_DEBUG_DIRECTORY_ENTRY);
Status = ImageContext->ImageRead (
ImageContext->Handle,
- DebugDirectoryEntryFileOffset,
+ DebugDirectoryEntryFileOffset + Index,
&Size,
&DebugEntry
);