From: ydong10 Date: Fri, 16 Mar 2012 03:22:38 +0000 (+0000) Subject: Update the offset when read every debug entries info. X-Git-Tag: edk2-stable201903~13567 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=be30ddf795e575696d8da0636bac8c252355a1f1 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 --- 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.
+ Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
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 );