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>
This commit is contained in:
Marvin Häuser 2017-03-11 22:05:26 +00:00 committed by Ard Biesheuvel
parent ec86d28558
commit a559e0602c
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ ASM_FUNC(__modsi3)
add r7, sp, #8 add r7, sp, #8
mov r5, r0 mov r5, r0
mov r4, r1 mov r4, r1
bl ___divsi3 bl ASM_PFX(__divsi3)
mul r0, r4, r0 mul r0, r4, r0
rsb r0, r0, r5 rsb r0, r0, r5
ldmfd sp!, {r4, r5, r7, pc} ldmfd sp!, {r4, r5, r7, pc}