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 | |
parent | ac4e7050a33ca86080679870040cc0a508c6e98d (diff) | |
download | edk2-d48e8b0afa9d2782418b000e17e8303097a21229.zip edk2-d48e8b0afa9d2782418b000e17e8303097a21229.tar.gz edk2-d48e8b0afa9d2782418b000e17e8303097a21229.tar.bz2 |
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
-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 501a9e9..064922d 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)
|