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 <ard.biesheuvel@linaro.org>
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19329
6f19259b-4bc3-4df7-8a09-
765794883524
#include <IndustryStandard/Xen/arch-arm/xen.h>\r
\r
.text\r
#include <IndustryStandard/Xen/arch-arm/xen.h>\r
\r
.text\r
- .global ASM_PFX(XenHypercall2)\r
+GCC_ASM_EXPORT(XenHypercall2)\r
+\r
ASM_PFX(XenHypercall2):\r
mov r12, r0\r
mov r0, r1\r
ASM_PFX(XenHypercall2):\r
mov r12, r0\r
mov r0, r1\r