From ce44ee32d3c8e5ffac3c3c2608cabd485f30ddd9 Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Thu, 17 Dec 2015 17:10:59 +0000 Subject: [PATCH] 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 , %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 Acked-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19329 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S b/OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S index b38e1a8f18..c12c8658b7 100644 --- a/OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S +++ b/OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S @@ -16,7 +16,8 @@ #include .text - .global ASM_PFX(XenHypercall2) +GCC_ASM_EXPORT(XenHypercall2) + ASM_PFX(XenHypercall2): mov r12, r0 mov r0, r1