X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fsha%2Fasm%2Fsha512-x86_64.pl;h=b6252d31eca20192099be564471f91fb06eea6d3;hp=4cf5c623d6f1684f9bfbe100d2718126a2ec632e;hb=55eab3b74b61eef2fe320710ee3675583035d5c5;hpb=dc0fcb98dffb20f6ee4cd6a8ee588c9f64373a99 diff --git a/crypto/sha/asm/sha512-x86_64.pl b/crypto/sha/asm/sha512-x86_64.pl index 4cf5c623d6..b6252d31ec 100755 --- a/crypto/sha/asm/sha512-x86_64.pl +++ b/crypto/sha/asm/sha512-x86_64.pl @@ -41,7 +41,13 @@ # apparently are not atomic instructions, but implemented in microcode. $output=shift; -open STDOUT,"| $^X ../perlasm/x86_64-xlate.pl $output"; + +$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1; +( $xlate="${dir}x86_64-xlate.pl" and -f $xlate ) or +( $xlate="${dir}../../perlasm/x86_64-xlate.pl" and -f $xlate) or +die "can't locate x86_64-xlate.pl"; + +open STDOUT,"| $^X $xlate $output"; if ($output =~ /512/) { $func="sha512_block_data_order";