diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-10 06:20:50 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-10 06:20:50 +0000 |
commit | 3ecdcd1146b8268eea8a550e883121c566a9aef8 (patch) | |
tree | 93686f11687a79a0c5b3ffde80daa8322fc678e5 /MdePkg/Include | |
parent | eecd469b1064cd253f0b1c666659505659f8d121 (diff) | |
download | edk2-platforms-3ecdcd1146b8268eea8a550e883121c566a9aef8.tar.xz |
Update HobLib and PeCoffLib according to MDE Lib Spec 0.61c
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6100 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include')
-rw-r--r-- | MdePkg/Include/Library/HobLib.h | 3 | ||||
-rw-r--r-- | MdePkg/Include/Library/PeCoffLib.h | 17 |
2 files changed, 12 insertions, 8 deletions
diff --git a/MdePkg/Include/Library/HobLib.h b/MdePkg/Include/Library/HobLib.h index 02f364ccc6..ae1fb16f88 100644 --- a/MdePkg/Include/Library/HobLib.h +++ b/MdePkg/Include/Library/HobLib.h @@ -17,9 +17,10 @@ /**
Returns the pointer to the HOB list.
+ ASSERT() if the HOB list returned by GetHobList() is NULL.
This function returns the pointer to first HOB in the list.
-
+
@return The pointer to the HOB list.
**/
diff --git a/MdePkg/Include/Library/PeCoffLib.h b/MdePkg/Include/Library/PeCoffLib.h index 47b70fff92..2a30d845ce 100644 --- a/MdePkg/Include/Library/PeCoffLib.h +++ b/MdePkg/Include/Library/PeCoffLib.h @@ -85,6 +85,7 @@ typedef struct { VOID *FixupData;
///
/// Is set by PeCoffLoaderGetImageInfo() to the Section Alignment in the PE/COFF header
+ /// If the image is a TE image, then this field is set to 0.
///
UINT32 SectionAlignment;
///
@@ -159,13 +160,15 @@ typedef struct { /**
Retrieves information about a PE/COFF image.
- Computes the PeCoffHeaderOffset, ImageAddress, ImageSize, DestinationAddress, CodeView,
- PdbPointer, RelocationsStripped, SectionAlignment, SizeOfHeaders, and DebugDirectoryEntryRva
- fields of the ImageContext structure. If ImageContext is NULL, then return RETURN_INVALID_PARAMETER.
- If the PE/COFF image accessed through the ImageRead service in the ImageContext structure is not
- a supported PE/COFF image type, then return RETURN_UNSUPPORTED. If any errors occur while
- computing the fields of ImageContext, then the error status is returned in the ImageError field of
- ImageContext.
+ Computes the PeCoffHeaderOffset, IsTeImage, ImageType, ImageAddress, ImageSize,
+ DestinationAddress, RelocationsStripped, SectionAlignment, SizeOfHeaders, and
+ DebugDirectoryEntryRva fields of the ImageContext structure.
+ If ImageContext is NULL, then return RETURN_INVALID_PARAMETER.
+ If the PE/COFF image accessed through the ImageRead service in the ImageContext
+ structure is not a supported PE/COFF image type, then return RETURN_UNSUPPORTED.
+ If any errors occur while computing the fields of ImageContext,
+ then the error status is returned in the ImageError field of ImageContext.
+ If the image is a TE image, then SectionAlignment is set to 0.
@param ImageContext Pointer to the image context structure that describes the PE/COFF
image that needs to be examined by this function.
|