diff options
author | Andy Polyakov <appro@openssl.org> | 2006-05-03 13:39:34 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2006-05-03 13:39:34 +0000 |
commit | fe716ba686a9fa06c400d2073437f797ee34c5cb (patch) | |
tree | 5d65ea33e18acbb5cdf1974a94a5dfad6a971659 /crypto/perlasm | |
parent | 9a97800813cce9ec2a772ee387c77312a5ce0724 (diff) |
PPC assembler distiller update.
Diffstat (limited to 'crypto/perlasm')
-rwxr-xr-x | crypto/perlasm/ppc-xlate.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/perlasm/ppc-xlate.pl b/crypto/perlasm/ppc-xlate.pl index 31876e56b2..a51147a3a7 100755 --- a/crypto/perlasm/ppc-xlate.pl +++ b/crypto/perlasm/ppc-xlate.pl @@ -52,6 +52,9 @@ my $globl = sub { $$global = $name; $ret; }; +my $text = sub { + ($flavour =~ /aix/) ? ".csect" : ".text"; +}; my $machine = sub { my $junk = shift; my $arch = shift; @@ -102,6 +105,7 @@ while($line=<>) { my $mnemonic = $2; my $f = $3; my $opcode = eval("\$$mnemonic"); + $line =~ s|\br([0-9]+)\b|$1|g if ($c ne "." and $flavour !~ /osx/); if (ref($opcode) eq 'CODE') { $line = &$opcode($f,split(',',$line)); } elsif ($mnemonic) { $line = $c.$mnemonic.$f."\t".$line; } } |