mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
793ae6eeb3
commit
be30ddf795
|
@ -2,7 +2,7 @@
|
||||||
Base PE/COFF loader supports loading any PE32/PE32+ or TE image, but
|
Base PE/COFF loader supports loading any PE32/PE32+ or TE image, but
|
||||||
only supports relocating IA32, x64, IPF, and EBC images.
|
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>
|
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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);
|
Size = sizeof (EFI_IMAGE_DEBUG_DIRECTORY_ENTRY);
|
||||||
Status = ImageContext->ImageRead (
|
Status = ImageContext->ImageRead (
|
||||||
ImageContext->Handle,
|
ImageContext->Handle,
|
||||||
DebugDirectoryEntryFileOffset,
|
DebugDirectoryEntryFileOffset + Index,
|
||||||
&Size,
|
&Size,
|
||||||
&DebugEntry
|
&DebugEntry
|
||||||
);
|
);
|
||||||
|
@ -442,7 +442,7 @@ PeCoffLoaderGetImageInfo (
|
||||||
Size = sizeof (EFI_IMAGE_DEBUG_DIRECTORY_ENTRY);
|
Size = sizeof (EFI_IMAGE_DEBUG_DIRECTORY_ENTRY);
|
||||||
Status = ImageContext->ImageRead (
|
Status = ImageContext->ImageRead (
|
||||||
ImageContext->Handle,
|
ImageContext->Handle,
|
||||||
DebugDirectoryEntryFileOffset,
|
DebugDirectoryEntryFileOffset + Index,
|
||||||
&Size,
|
&Size,
|
||||||
&DebugEntry
|
&DebugEntry
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue