Fix chacha-armv4.pl with clang -fno-integrated-as.
authorDavid Benjamin <davidben@google.com>
Fri, 16 Jun 2017 01:22:21 +0000 (21:22 -0400)
committerAndy Polyakov <appro@openssl.org>
Tue, 28 Nov 2017 19:26:31 +0000 (20:26 +0100)
The __clang__-guarded #defines cause gas to complain if clang is passed
-fno-integrated-as. Emitting .syntax unified when those are used fixes
this. This matches the change made to ghash-armv4.pl in
6cf412c473d8145562b76219ce3da73b201b3255.

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/3694)

crypto/chacha/asm/chacha-armv4.pl

index c90306e45c93b19810ff822943dd89ba7127ebc4..d3fadcc63d3338e25f0eadb41d2c6ce435410413 100755 (executable)
@@ -172,8 +172,10 @@ $code.=<<___;
 #include "arm_arch.h"
 
 .text
-#if defined(__thumb2__)
+#if defined(__thumb2__) || defined(__clang__)
 .syntax        unified
+#endif
+#if defined(__thumb2__)
 .thumb
 #else
 .code  32