diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-02 23:40:06 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-02 23:40:06 +0000 |
commit | d48e8b0afa9d2782418b000e17e8303097a21229 (patch) | |
tree | 72a74d5ee604b56022da2304157e4a69affccf1e /MdePkg/Library | |
parent | ac4e7050a33ca86080679870040cc0a508c6e98d (diff) | |
download | edk2-platforms-d48e8b0afa9d2782418b000e17e8303097a21229.tar.xz |
Use rip relative addressing for x64 label for Thunk16.S to prevent GCC assembly from generating 32-bit value with HIGHLOW fixup.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8444 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library')
-rw-r--r-- | MdePkg/Library/BaseLib/X64/Thunk16.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseLib/X64/Thunk16.S b/MdePkg/Library/BaseLib/X64/Thunk16.S index 501a9e9d8b..064922d100 100644 --- a/MdePkg/Library/BaseLib/X64/Thunk16.S +++ b/MdePkg/Library/BaseLib/X64/Thunk16.S @@ -295,7 +295,7 @@ ASM_PFX(InternalAsmThunk16): movl %edx,%ss
pushfq
lea -8(%rdx), %edx
- lea L_RetFromRealMode, %r8
+ lea L_RetFromRealMode(%rip), %r8
pushq %r8
movl %cs, %r8d
movw %r8w, (SavedCs - SavedCr4)(%rcx)
|