x86_64 assembly pack: keep making Windows build more robust.
authorAndy Polyakov <appro@openssl.org>
Sat, 2 Feb 2013 18:52:43 +0000 (19:52 +0100)
committerAndy Polyakov <appro@openssl.org>
Sat, 2 Feb 2013 21:26:20 +0000 (22:26 +0100)
PR: 2963 and a number of others
(cherry picked from commit 4568182a8b8cbfd15cbc175189029ac547bd1762)

crypto/bn/asm/x86_64-mont.pl
crypto/bn/asm/x86_64-mont5.pl

index 22fe51b5e3e1ed089738139c1cc43853a20f5e03..17fb94c84c9f1793268a26fa553cec8ad38d5579 100755 (executable)
@@ -40,7 +40,8 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
 ( $xlate="${dir}../../perlasm/x86_64-xlate.pl" and -f $xlate) or
 die "can't locate x86_64-xlate.pl";
 
-open STDOUT,"| \"$^X\" $xlate $flavour $output";
+open OUT,"| \"$^X\" $xlate $flavour $output";
+*STDOUT=*OUT;
 
 # int bn_mul_mont(
 $rp="%rdi";    # BN_ULONG *rp,
index f63760306b4199218eb688369a331f6ffeb07f58..8f8dc5a59798aa88ac14deb90cf59a00a151a4c9 100755 (executable)
@@ -28,7 +28,8 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
 ( $xlate="${dir}../../perlasm/x86_64-xlate.pl" and -f $xlate) or
 die "can't locate x86_64-xlate.pl";
 
-open STDOUT,"| \"$^X\" $xlate $flavour $output";
+open OUT,"| \"$^X\" $xlate $flavour $output";
+*STDOUT=*OUT;
 
 # int bn_mul_mont_gather5(
 $rp="%rdi";    # BN_ULONG *rp,