]> granicus.if.org Git - openssl/commitdiff
aes/asm/*-armv*.pl: compensate for inconsistencies in tool-chains.
authorAndy Polyakov <appro@openssl.org>
Tue, 1 Oct 2013 18:33:06 +0000 (20:33 +0200)
committerAndy Polyakov <appro@openssl.org>
Tue, 1 Oct 2013 18:33:06 +0000 (20:33 +0200)
Suggested by: Ard Biesheuvel

crypto/aes/asm/aes-armv4.pl
crypto/aes/asm/bsaes-armv7.pl

index 77fe2d33e0b7c31cb75b5c491a59b9052944238a..57996f68b7e401574809fc13c07b358cf7d20864 100644 (file)
@@ -62,6 +62,11 @@ $code=<<___;
 .code  32
 #else
 .syntax        unified
+# ifdef __thumb2__
+.thumb
+# else
+.code  32
+# endif
 #endif
 
 .type  AES_Te,%object
index 8515c9d0abd99b3dc735579ab7c1ebd8a7297b27..31b93a948263c99e359c6686cd3ae44a0f6d3511 100644 (file)
@@ -652,6 +652,12 @@ $code.=<<___;
 #if __ARM_ARCH__>=7
 .text
 .syntax        unified         @ ARMv7-capable assembler is expected to handle this
+#ifdef __thumb2__
+.thumb
+#else
+.code   32
+#endif
+
 .fpu   neon
 
 .type  _bsaes_decrypt8,%function