mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
ac4e7050a3
commit
d48e8b0afa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue