]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg: Fix modsi3.S compilation across toolchains.
authorMarvin Häuser <Marvin.Haeuser@outlook.com>
Sat, 11 Mar 2017 22:05:26 +0000 (22:05 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 14 Mar 2017 08:02:09 +0000 (08:02 +0000)
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>
ArmPkg/Library/CompilerIntrinsicsLib/Arm/modsi3.S

index 29e2df92b02f44c010314e4a38174d2c1f520aa6..d5624b90f9d5753a1607ab5dbe0581473197b869 100644 (file)
@@ -19,7 +19,7 @@ ASM_FUNC(__modsi3)
   add  r7, sp, #8\r
   mov  r5, r0\r
   mov  r4, r1\r
-  bl  ___divsi3\r
+  bl  ASM_PFX(__divsi3)\r
   mul  r0, r4, r0\r
   rsb  r0, r0, r5\r
   ldmfd  sp!, {r4, r5, r7, pc}\r