]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix Xcode link failure. Relocations are not supported in .text sections.
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 8 Oct 2011 20:51:17 +0000 (20:51 +0000)
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 8 Oct 2011 20:51:17 +0000 (20:51 +0000)
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

index 54753168c885f90fee33bfa60fc304793a08c808..4c3c5605fa12408848015665562bc6f3ebd9c03c 100644 (file)
@@ -153,7 +153,7 @@ L_SavedSp:  .space      4              # restore stack
 _EntryPoint: .long      ASM_PFX(ToUserCode) - ASM_PFX(m16Start)\r
              .word      CODE16\r
 _16Gdtr:     .word      GDT_SIZE - 1\r
-_16GdtrBase: .quad      ASM_PFX(NullSeg)\r
+_16GdtrBase: .quad      0\r
 _16Idtr:     .word      0x3ff\r
              .long      0\r
 \r