From f2a4d59359499e63bddab4b14d029a92c8b5a418 Mon Sep 17 00:00:00 2001 From: andrewfish Date: Sat, 8 Oct 2011 20:51:17 +0000 Subject: Fix Xcode link failure. Relocations are not supported in .text sections. Per Rui's review of the patch _16GdtrBase is a label that is patched by C code so it does require initialization. approved-by: andrewfish reviewed-by: jljusten reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12515 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseLib/X64/Thunk16.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdePkg') diff --git a/MdePkg/Library/BaseLib/X64/Thunk16.S b/MdePkg/Library/BaseLib/X64/Thunk16.S index 54753168c8..4c3c5605fa 100644 --- a/MdePkg/Library/BaseLib/X64/Thunk16.S +++ b/MdePkg/Library/BaseLib/X64/Thunk16.S @@ -153,7 +153,7 @@ L_SavedSp: .space 4 # restore stack _EntryPoint: .long ASM_PFX(ToUserCode) - ASM_PFX(m16Start) .word CODE16 _16Gdtr: .word GDT_SIZE - 1 -_16GdtrBase: .quad ASM_PFX(NullSeg) +_16GdtrBase: .quad 0 _16Idtr: .word 0x3ff .long 0 -- cgit v1.2.3