Revision: 19329
          http://sourceforge.net/p/edk2/code/19329
Author:   abiesheuvel
Date:     2015-12-17 17:10:59 +0000 (Thu, 17 Dec 2015)
Log Message:
-----------
OvfmPkg/XenHypercallLib: add missing GCC_ASM_EXPORT to XenHypercall2

GCC_ASM_EXPORT() not only exports a symbol as a function, it also emits
a .type <xxx>, %function directive, which is used by the ARM linker to
decide whether to emit interworking branches. So replace the explicit
.global with GCC_ASM_EXPORT(), or the code will not be callable from
Thumb-2 code.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <[email protected]>
Acked-by: Jordan Justen <[email protected]>

Modified Paths:
--------------
    trunk/edk2/OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S

Modified: trunk/edk2/OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S
===================================================================
--- trunk/edk2/OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S  2015-12-17 
17:02:06 UTC (rev 19328)
+++ trunk/edk2/OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S  2015-12-17 
17:10:59 UTC (rev 19329)
@@ -16,7 +16,8 @@
 #include <IndustryStandard/Xen/arch-arm/xen.h>
 
   .text
-  .global   ASM_PFX(XenHypercall2)
+GCC_ASM_EXPORT(XenHypercall2)
+
 ASM_PFX(XenHypercall2):
   mov     r12, r0
   mov     r0, r1


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to