diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-15 06:35:47 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-15 06:35:47 +0000 |
commit | 9c7790d2cb87584ac2a844f0757142edebd35f71 (patch) | |
tree | 6c4eed665e377cb8ce9876f68b7d711e4f661cf3 /Tools/Source/TianoTools/PeCoffLoader | |
parent | ff225cbbae618da0eb4ad54064a40e7dd4e343df (diff) | |
download | edk2-platforms-9c7790d2cb87584ac2a844f0757142edebd35f71.tar.xz |
1. Adjust might be 64bit, so we need to typecast it to UINT32 firstly.
2. Synchronization modification described in Tracker EDKT182 to all dependent files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1270 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source/TianoTools/PeCoffLoader')
-rw-r--r-- | Tools/Source/TianoTools/PeCoffLoader/BasePeCoff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/Source/TianoTools/PeCoffLoader/BasePeCoff.c b/Tools/Source/TianoTools/PeCoffLoader/BasePeCoff.c index b90d7625f0..9c25e1f4b8 100644 --- a/Tools/Source/TianoTools/PeCoffLoader/BasePeCoff.c +++ b/Tools/Source/TianoTools/PeCoffLoader/BasePeCoff.c @@ -643,7 +643,7 @@ Returns: case EFI_IMAGE_REL_BASED_HIGH:
F16 = (UINT16 *) Fixup;
- *F16 = (UINT16) ((*F16 << 16) + (UINT16) Adjust);
+ *F16 = (UINT16) (*F16 + ((UINT16) ((UINT32) Adjust >> 16)));
if (FixupData != NULL) {
*(UINT16 *) FixupData = *F16;
FixupData = FixupData + sizeof (UINT16);
|