summaryrefslogtreecommitdiff
path: root/MdePkg/Include
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-07 02:02:39 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-07 02:02:39 +0000
commit9833a9bb6c99afc0c16934f88370dc31b6f77a84 (patch)
tree7c92084f4b10d3b2949c4dce709c8ddb0346b960 /MdePkg/Include
parenta4f31dafa7a736b72b9c443e4ac6618382db748f (diff)
downloadedk2-platforms-9833a9bb6c99afc0c16934f88370dc31b6f77a84.tar.xz
Add check for Zero Relocation section.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7197 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include')
-rw-r--r--MdePkg/Include/Library/PeCoffLib.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/MdePkg/Include/Library/PeCoffLib.h b/MdePkg/Include/Library/PeCoffLib.h
index d2f9d5ea5e..c02e75169e 100644
--- a/MdePkg/Include/Library/PeCoffLib.h
+++ b/MdePkg/Include/Library/PeCoffLib.h
@@ -319,9 +319,11 @@ PeCoffLoaderImageReadFromMemory (
Reapply fixups on a fixed up PE32/PE32+ image to allow virutal calling at EFI
runtime.
- PE_COFF_LOADER_IMAGE_CONTEXT.FixupData stores information needed to reapply
- the fixups with a virtual mapping.
-
+ This function reapplies relocation fixups to the PE/COFF image specified by ImageBase
+ and ImageSize so the image will execute correctly when the PE/COFF image is mapped
+ to the address specified by VirtualImageBase. RelocationData must be identical
+ to the FiuxupData buffer from the PE_COFF_LOADER_IMAGE_CONTEXT structure
+ after this PE/COFF image was relocated with PeCoffLoaderRelocateImage().
@param ImageBase Base address of a PE/COFF image that has been loaded
and relocated into system memory.