ARMv4 assembler: fix compilation failure. Fix is actually unconfirmed, but
[openssl.git] / crypto / bn / asm / armv4-mont.pl
index 47fbd387e49eb39f8b540ff4a9daf600ecc86330..14e0d2d1dd5bcc07d00ae9912e212afced972315 100644 (file)
@@ -193,7 +193,9 @@ bn_mul_mont:
        bx      lr                      @ interoperable with Thumb ISA:-)
 .size  bn_mul_mont,.-bn_mul_mont
 .asciz "Montgomery multiplication for ARMv4, CRYPTOGAMS by <appro\@openssl.org>"
+.align 2
 ___
 
+$code =~ s/\bbx\s+lr\b/.word\t0xe12fff1e/gm;   # make it possible to compile with -march=armv4
 print $code;
 close STDOUT;