Unified - adapt the generation of chacha assembler to use GENERATE
[openssl.git] / crypto / chacha / asm / chacha-x86.pl
index 850c9172641d5220850a832e8d56e65bd7829d77..8b9696ff0252a4982cd35b06125e6901ac4455f9 100755 (executable)
@@ -31,6 +31,9 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
 push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 
+$output=pop;
+open STDOUT,">$output";
+
 &asm_init($ARGV[0],"chacha-x86.pl",$ARGV[$#ARGV] eq "386");
 
 $xmm=$ymm=0;
@@ -1130,3 +1133,5 @@ sub XOPROUND {
 }
 
 &asm_finish();
+
+close STDOUT;