diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-08 05:09:33 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-08 05:09:33 +0000 |
commit | b96ad3ace807e39632147ecaa98eb0e3c1b5e6cc (patch) | |
tree | 6281ece4bafda7ab009b09d738fbfb9e75adc0a7 /MdePkg | |
parent | 265c22cc33668997ac811a3bad61e0e6c3177f15 (diff) | |
download | edk2-platforms-b96ad3ace807e39632147ecaa98eb0e3c1b5e6cc.tar.xz |
The EFI_IMAGE_REL_BASED_DIR64 type has been in switch for all common relocation type, So last check-in is duplicated code. Remove it.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2076 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Library/BasePeCoffLib/x64/PeCoffLoaderEx.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/MdePkg/Library/BasePeCoffLib/x64/PeCoffLoaderEx.c b/MdePkg/Library/BasePeCoffLib/x64/PeCoffLoaderEx.c index 8628dc7df1..a8d9f23e8c 100644 --- a/MdePkg/Library/BasePeCoffLib/x64/PeCoffLoaderEx.c +++ b/MdePkg/Library/BasePeCoffLib/x64/PeCoffLoaderEx.c @@ -84,22 +84,5 @@ PeHotRelocateImageEx ( IN UINT64 Adjust
)
{
- UINT64 *F64;
-
- switch ((*Reloc) >> 12) {
- case EFI_IMAGE_REL_BASED_DIR64:
- F64 = (UINT64 *) Fixup;
- *FixupData = ALIGN_POINTER(*FixupData, sizeof(UINT64));
- if (*(UINT64 *)(*FixupData) == *F64) {
- *F64 = *F64 + (UINT64) Adjust;
- }
-
- *FixupData = *FixupData + sizeof(UINT64);
- break;
-
- default:
- return RETURN_UNSUPPORTED;
- }
-
- return RETURN_SUCCESS;
+ return RETURN_UNSUPPORTED;
}
|