diff options
-rw-r--r-- | crypto/aes/asm/aes-armv4.pl | 5 | ||||
-rw-r--r-- | crypto/aes/asm/bsaes-armv7.pl | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/crypto/aes/asm/aes-armv4.pl b/crypto/aes/asm/aes-armv4.pl index 77fe2d33e0..57996f68b7 100644 --- a/crypto/aes/asm/aes-armv4.pl +++ b/crypto/aes/asm/aes-armv4.pl @@ -62,6 +62,11 @@ $code=<<___; .code 32 #else .syntax unified +# ifdef __thumb2__ +.thumb +# else +.code 32 +# endif #endif .type AES_Te,%object diff --git a/crypto/aes/asm/bsaes-armv7.pl b/crypto/aes/asm/bsaes-armv7.pl index 8515c9d0ab..31b93a9482 100644 --- a/crypto/aes/asm/bsaes-armv7.pl +++ b/crypto/aes/asm/bsaes-armv7.pl @@ -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 |