Make all x86_64 modules independent on current working directory.
This commit is contained in:
parent
a078befcbe
commit
abe7f8b457
@ -109,7 +109,13 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $output = shift;
|
my $output = shift;
|
||||||
open STDOUT,"| $^X ../perlasm/x86_64-xlate.pl $output";
|
|
||||||
|
$0 =~ m/(.*[\/\\])[^\/\\]+$/; my $dir=$1; my $xlate;
|
||||||
|
( $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";
|
||||||
|
|
||||||
$code .= <<EOF;
|
$code .= <<EOF;
|
||||||
.text
|
.text
|
||||||
|
@ -31,7 +31,13 @@
|
|||||||
# operand.
|
# operand.
|
||||||
|
|
||||||
$output=shift;
|
$output=shift;
|
||||||
open STDOUT,"| $^X ../perlasm/x86_64-xlate.pl $output";
|
|
||||||
|
$0 =~ m/(.*[\/\\])[^\/\\]+$/; my $dir=$1; my $xlate;
|
||||||
|
( $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";
|
||||||
|
|
||||||
sub L() { $code.=".byte ".join(',',@_)."\n"; }
|
sub L() { $code.=".byte ".join(',',@_)."\n"; }
|
||||||
sub LL(){ $code.=".byte ".join(',',@_).",".join(',',@_)."\n"; }
|
sub LL(){ $code.=".byte ".join(',',@_).",".join(',',@_)."\n"; }
|
||||||
|
@ -99,7 +99,9 @@ OPENSSL_wipe_cpu:
|
|||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
open STDOUT,"| $^X perlasm/x86_64-xlate.pl $output";
|
$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
|
||||||
|
open STDOUT,"| $^X $dir/perlasm/x86_64-xlate.pl $output";
|
||||||
|
|
||||||
print<<___;
|
print<<___;
|
||||||
.text
|
.text
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user