ARM assembly pack: make it work with older assembler.
[openssl.git] / crypto / modes / asm / ghashv8-armx.pl
index 7e57238706b10ee16c5abed4beb1f326de7c291c..ac9d5a21a35567d603c7d38392e7369d2d5afe10 100644 (file)
@@ -70,6 +70,7 @@ my ($t0,$t1,$t2,$xC2,$H,$Hhl,$H2)=map("q$_",(8..14));
 $code=<<___;
 #include "arm_arch.h"
 
+#if __ARM_MAX_ARCH__>=7
 .text
 ___
 $code.=".arch  armv8-a+crypto\n"       if ($flavour =~ /64/);
@@ -699,6 +700,7 @@ ___
 $code.=<<___;
 .asciz  "GHASH for ARMv8, CRYPTOGAMS by <appro\@openssl.org>"
 .align  2
+#endif
 ___
 
 if ($flavour =~ /64/) {                        ######## 64-bit code