summaryrefslogtreecommitdiffstats
path: root/ArmPkg
diff options
context:
space:
mode:
authorMarvin Häuser <Marvin.Haeuser@outlook.com>2017-03-11 22:05:26 +0000
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2017-03-14 08:02:09 +0000
commita559e0602c7a0dcb6d51e43431e0212c7999d303 (patch)
tree68b9a5df84ae47a3b7087bc07d8cdd7f6445cba2 /ArmPkg
parentec86d28558d4f9f325926be1444b2d4ce32a0dc2 (diff)
downloadedk2-a559e0602c7a0dcb6d51e43431e0212c7999d303.tar.gz
edk2-a559e0602c7a0dcb6d51e43431e0212c7999d303.tar.bz2
edk2-a559e0602c7a0dcb6d51e43431e0212c7999d303.zip
ArmPkg: Fix modsi3.S compilation across toolchains.
modsi3.S references the symbol '__divsi3' by '___divsi3' which assumes the prefix is always required and supported. Use ASM_PFX() instead to support all compilers. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com>
Diffstat (limited to 'ArmPkg')
-rw-r--r--ArmPkg/Library/CompilerIntrinsicsLib/Arm/modsi3.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPkg/Library/CompilerIntrinsicsLib/Arm/modsi3.S b/ArmPkg/Library/CompilerIntrinsicsLib/Arm/modsi3.S
index 29e2df92b0..d5624b90f9 100644
--- a/ArmPkg/Library/CompilerIntrinsicsLib/Arm/modsi3.S
+++ b/ArmPkg/Library/CompilerIntrinsicsLib/Arm/modsi3.S
@@ -19,7 +19,7 @@ ASM_FUNC(__modsi3)
add r7, sp, #8
mov r5, r0
mov r4, r1
- bl ___divsi3
+ bl ASM_PFX(__divsi3)
mul r0, r4, r0
rsb r0, r0, r5
ldmfd sp!, {r4, r5, r7, pc}