summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/perlasm
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/perlasm')
-rwxr-xr-xsrc/lib/libcrypto/perlasm/ppc-xlate.pl13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/lib/libcrypto/perlasm/ppc-xlate.pl b/src/lib/libcrypto/perlasm/ppc-xlate.pl
index 4579671c97..a3edd982b6 100755
--- a/src/lib/libcrypto/perlasm/ppc-xlate.pl
+++ b/src/lib/libcrypto/perlasm/ppc-xlate.pl
@@ -31,10 +31,9 @@ my $globl = sub {
31 $ret .= ".type $name,\@function"; 31 $ret .= ".type $name,\@function";
32 last; 32 last;
33 }; 33 };
34 /linux.*64/ && do { $ret .= ".globl .$name\n"; 34 /linux.*64/ && do { $ret .= ".globl $name\n";
35 $ret .= ".type .$name,\@function\n"; 35 $ret .= ".type $name,\@function\n";
36 $ret .= ".section \".opd\",\"aw\"\n"; 36 $ret .= ".section \".opd\",\"aw\"\n";
37 $ret .= ".globl $name\n";
38 $ret .= ".align 3\n"; 37 $ret .= ".align 3\n";
39 $ret .= "$name:\n"; 38 $ret .= "$name:\n";
40 $ret .= ".quad .$name,.TOC.\@tocbase,0\n"; 39 $ret .= ".quad .$name,.TOC.\@tocbase,0\n";
@@ -62,6 +61,14 @@ my $machine = sub {
62 } 61 }
63 ".machine $arch"; 62 ".machine $arch";
64}; 63};
64my $size = sub {
65 if ($flavour =~ /linux.*32/)
66 { shift;
67 ".size " . join(",",@_);
68 }
69 else
70 { ""; }
71};
65my $asciz = sub { 72my $asciz = sub {
66 shift; 73 shift;
67 my $line = join(",",@_); 74 my $line = join(",",@_);