x86_64 assembly pack: make it possible to compile with Perl located
authorAndy Polyakov <appro@openssl.org>
Wed, 27 Jun 2012 13:04:17 +0000 (13:04 +0000)
committerAndy Polyakov <appro@openssl.org>
Wed, 27 Jun 2012 13:04:17 +0000 (13:04 +0000)
on path with spaces [from HEAD].

PR: 2835

crypto/aes/asm/aes-x86_64.pl
crypto/bn/asm/x86_64-mont.pl
crypto/camellia/asm/cmll-x86_64.pl
crypto/md5/asm/md5-x86_64.pl
crypto/rc4/asm/rc4-x86_64.pl
crypto/sha/asm/sha1-x86_64.pl
crypto/sha/asm/sha512-x86_64.pl
crypto/whrlpool/asm/wp-x86_64.pl
crypto/x86_64cpuid.pl
ms/uplink-x86_64.pl

index a545e892aef00c6584c5bf31e1389ee3dc8bbeb1..2fb2923d459bd0bc7f834e1401a13924a7b83c50 100755 (executable)
@@ -36,7 +36,7 @@ $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 STDOUT,"| \"$^X\" $xlate $flavour $output";
 
 $verticalspin=1;       # unlike 32-bit version $verticalspin performs
                        # ~15% better on both AMD and Intel cores
index 3b7a6f243f21e65882daa79e575c4a12ea6dce2c..2b1b7159026ecb49c44d8898de33fd95d9f73c9c 100755 (executable)
@@ -26,7 +26,7 @@ $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 STDOUT,"| \"$^X\" $xlate $flavour $output";
 
 # int bn_mul_mont(
 $rp="%rdi";    # BN_ULONG *rp,
index 76955e47265c140b4f8458c324fdf5724d6eb89d..10e2298288712ef9298ac723d4920044d6ac5e31 100644 (file)
@@ -40,7 +40,7 @@ $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 STDOUT,"| \"$^X\" $xlate $flavour $output";
 
 sub hi() { my $r=shift; $r =~ s/%[er]([a-d])x/%\1h/;    $r; }
 sub lo() { my $r=shift; $r =~ s/%[er]([a-d])x/%\1l/;
index 867885435e2930d3de96664532f5403fadc059f2..721f0490f5dda436ad70e13deb847e89c5e27ba5 100755 (executable)
@@ -120,7 +120,7 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; my $dir=$1; my $xlate;
 die "can't locate x86_64-xlate.pl";
 
 no warnings qw(uninitialized);
-open STDOUT,"| $^X $xlate $flavour $output";
+open STDOUT,"| \"$^X\" $xlate $flavour $output";
 
 $code .= <<EOF;
 .text
index 677be5fe25badfe44a315855a827c65d71543e72..63f87e467ebff01c7a67a33f0e7ade928066cd08 100755 (executable)
@@ -69,7 +69,7 @@ $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 STDOUT,"| \"$^X\" $xlate $flavour $output";
 
 $dat="%rdi";       # arg1
 $len="%rsi";       # arg2
index 4edc5ea9ad5562a450073eeea2ec1964f37b01b5..9e7e9aa5198a047a275cc6a341e557d3265bdad4 100755 (executable)
@@ -40,7 +40,7 @@ $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 STDOUT,"| \"$^X\" $xlate $flavour $output";
 
 $ctx="%rdi";   # 1st arg
 $inp="%rsi";   # 2nd arg
index e6643f8cf613d2addb4591f60c0962bacd6c28db..d039304a8749b205ce3de2f612e4f05a12830d33 100755 (executable)
@@ -51,7 +51,7 @@ $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 STDOUT,"| \"$^X\" $xlate $flavour $output";
 
 if ($output =~ /512/) {
        $func="sha512_block_data_order";
index 87c0843dc1d39ff026ad0c991c34b665f6518513..9be1cc2238b581b78838364ee6b1053309e14737 100644 (file)
@@ -41,7 +41,7 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; my $dir=$1; my $xlate;
 ( $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 STDOUT,"| \"$^X\" $xlate $flavour $output";
 
 sub L() { $code.=".byte        ".join(',',@_)."\n"; }
 sub LL(){ $code.=".byte        ".join(',',@_).",".join(',',@_)."\n"; }
index c96821a3c811d55567f43caebce6f47a8308c790..c3a4cc9d81921a5d04b502520e69edcca4688ef8 100644 (file)
@@ -7,7 +7,7 @@ if ($flavour =~ /\./) { $output = $flavour; undef $flavour; }
 $win64=0; $win64=1 if ($flavour =~ /[nm]asm|mingw64/ || $output =~ /\.asm$/);
 
 $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
-open STDOUT,"| $^X ${dir}perlasm/x86_64-xlate.pl $flavour $output";
+open STDOUT,"| \"$^X\" ${dir}perlasm/x86_64-xlate.pl $flavour $output";
 
 if ($win64)    { $arg1="%rcx"; $arg2="%rdx"; }
 else           { $arg1="%rdi"; $arg2="%rsi"; }
index 9acbf6be6f485d2193765cb15d6f6cddd704921b..2758c86d1e0595002d8a080ff416ac6974533843 100755 (executable)
@@ -2,7 +2,7 @@
 
 $output=shift;
 $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
-open STDOUT,"| $^X ${dir}../crypto/perlasm/x86_64-xlate.pl $output";
+open STDOUT,"| \"$^X\" ${dir}../crypto/perlasm/x86_64-xlate.pl $output";
 push(@INC,"${dir}.");
 
 require "uplink-common.pl";