From 066caf0551dcb693e596fe3352f6fa764f86b8a7 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Tue, 1 Oct 2013 20:33:06 +0200 Subject: aes/asm/*-armv*.pl: compensate for inconsistencies in tool-chains. Suggested by: Ard Biesheuvel --- crypto/aes/asm/aes-armv4.pl | 5 +++++ crypto/aes/asm/bsaes-armv7.pl | 6 ++++++ 2 files changed, 11 insertions(+) (limited to 'crypto') 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 -- cgit v1.2.3