projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a97800
)
PPC assembler distiller update.
author
Andy Polyakov
<appro@openssl.org>
Wed, 3 May 2006 13:39:34 +0000
(13:39 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Wed, 3 May 2006 13:39:34 +0000
(13:39 +0000)
crypto/perlasm/ppc-xlate.pl
patch
|
blob
|
history
diff --git
a/crypto/perlasm/ppc-xlate.pl
b/crypto/perlasm/ppc-xlate.pl
index 31876e56b252849f67a6564f28a2cdef2b0ed255..a51147a3a7aa2377fb4e497ef387ac173a2821b1 100755
(executable)
--- 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; }
}