summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/perlasm
diff options
context:
space:
mode:
authorbeck <>2000-04-15 06:18:51 +0000
committerbeck <>2000-04-15 06:18:51 +0000
commitb608c7f2b175e121f2c22d53341a317153afdc8e (patch)
treee94b160b3fcd8180df79e4251d68d24d665f0195 /src/lib/libcrypto/perlasm
parentc8d6701c396cebdcd0d45eac73b762e9498f6b01 (diff)
downloadopenbsd-b608c7f2b175e121f2c22d53341a317153afdc8e.tar.gz
openbsd-b608c7f2b175e121f2c22d53341a317153afdc8e.tar.bz2
openbsd-b608c7f2b175e121f2c22d53341a317153afdc8e.zip
OpenSSL 0.9.5a merge
Diffstat (limited to 'src/lib/libcrypto/perlasm')
-rw-r--r--src/lib/libcrypto/perlasm/x86asm.pl6
-rw-r--r--src/lib/libcrypto/perlasm/x86ms.pl2
-rw-r--r--src/lib/libcrypto/perlasm/x86unix.pl8
3 files changed, 13 insertions, 3 deletions
diff --git a/src/lib/libcrypto/perlasm/x86asm.pl b/src/lib/libcrypto/perlasm/x86asm.pl
index 44e330eb8d..81c6e64e87 100644
--- a/src/lib/libcrypto/perlasm/x86asm.pl
+++ b/src/lib/libcrypto/perlasm/x86asm.pl
@@ -18,11 +18,13 @@ sub main'asm_init
18 ($type,$fn,$i386)=@_; 18 ($type,$fn,$i386)=@_;
19 $filename=$fn; 19 $filename=$fn;
20 20
21 $cpp=$sol=$aout=$win32=0; 21 $cpp=$sol=$aout=$win32=$gaswin=0;
22 if ( ($type eq "elf")) 22 if ( ($type eq "elf"))
23 { require "x86unix.pl"; } 23 { require "x86unix.pl"; }
24 elsif ( ($type eq "a.out")) 24 elsif ( ($type eq "a.out"))
25 { $aout=1; require "x86unix.pl"; } 25 { $aout=1; require "x86unix.pl"; }
26 elsif ( ($type eq "gaswin"))
27 { $gaswin=1; $aout=1; require "x86unix.pl"; }
26 elsif ( ($type eq "sol")) 28 elsif ( ($type eq "sol"))
27 { $sol=1; require "x86unix.pl"; } 29 { $sol=1; require "x86unix.pl"; }
28 elsif ( ($type eq "cpp")) 30 elsif ( ($type eq "cpp"))
@@ -50,7 +52,7 @@ EOF
50&comment("Don't even think of reading this code"); 52&comment("Don't even think of reading this code");
51&comment("It was automatically generated by $filename"); 53&comment("It was automatically generated by $filename");
52&comment("Which is a perl program used to generate the x86 assember for"); 54&comment("Which is a perl program used to generate the x86 assember for");
53&comment("any of elf, a.out, BSDI,Win32, or Solaris"); 55&comment("any of elf, a.out, BSDI, Win32, gaswin (for GNU as on Win32) or Solaris");
54&comment("eric <eay\@cryptsoft.com>"); 56&comment("eric <eay\@cryptsoft.com>");
55&comment(""); 57&comment("");
56 58
diff --git a/src/lib/libcrypto/perlasm/x86ms.pl b/src/lib/libcrypto/perlasm/x86ms.pl
index 252a57bdb5..206452341d 100644
--- a/src/lib/libcrypto/perlasm/x86ms.pl
+++ b/src/lib/libcrypto/perlasm/x86ms.pl
@@ -341,7 +341,7 @@ sub main'set_label
341 $label{$_[0]}="${label}${_[0]}"; 341 $label{$_[0]}="${label}${_[0]}";
342 $label++; 342 $label++;
343 } 343 }
344 if((defined $_[1]) && ($_[1] == 1)) 344 if((defined $_[2]) && ($_[2] == 1))
345 { 345 {
346 push(@out,"$label{$_[0]}::\n"); 346 push(@out,"$label{$_[0]}::\n");
347 } 347 }
diff --git a/src/lib/libcrypto/perlasm/x86unix.pl b/src/lib/libcrypto/perlasm/x86unix.pl
index 60d75f5ce4..309060ea00 100644
--- a/src/lib/libcrypto/perlasm/x86unix.pl
+++ b/src/lib/libcrypto/perlasm/x86unix.pl
@@ -292,6 +292,8 @@ EOF
292 push(@out,$tmp); 292 push(@out,$tmp);
293 if ($main'cpp) 293 if ($main'cpp)
294 { $tmp=push(@out,"\tTYPE($func,\@function)\n"); } 294 { $tmp=push(@out,"\tTYPE($func,\@function)\n"); }
295 elsif ($main'gaswin)
296 { $tmp=push(@out,"\t.def\t$func;\t.scl\t2;\t.type\t32;\t.endef\n"); }
295 else { $tmp=push(@out,"\t.type\t$func,\@function\n"); } 297 else { $tmp=push(@out,"\t.type\t$func,\@function\n"); }
296 push(@out,"$func:\n"); 298 push(@out,"$func:\n");
297 $tmp=<<"EOF"; 299 $tmp=<<"EOF";
@@ -320,6 +322,8 @@ EOF
320 push(@out,$tmp); 322 push(@out,$tmp);
321 if ($main'cpp) 323 if ($main'cpp)
322 { push(@out,"\tTYPE($func,\@function)\n"); } 324 { push(@out,"\tTYPE($func,\@function)\n"); }
325 elsif ($main'gaswin)
326 { $tmp=push(@out,"\t.def\t$func;\t.scl\t2;\t.type\t32;\t.endef\n"); }
323 else { push(@out,"\t.type $func,\@function\n"); } 327 else { push(@out,"\t.type $func,\@function\n"); }
324 push(@out,"$func:\n"); 328 push(@out,"$func:\n");
325 $stack=4; 329 $stack=4;
@@ -342,6 +346,8 @@ EOF
342 push(@out,$tmp); 346 push(@out,$tmp);
343 if ($main'cpp) 347 if ($main'cpp)
344 { push(@out,"\tSIZE($func,.${func}_end-$func)\n"); } 348 { push(@out,"\tSIZE($func,.${func}_end-$func)\n"); }
349 elsif ($main'gaswin)
350 { $tmp=push(@out,"\t.align 4\n"); }
345 else { push(@out,"\t.size\t$func,.${func}_end-$func\n"); } 351 else { push(@out,"\t.size\t$func,.${func}_end-$func\n"); }
346 push(@out,".ident \"$func\"\n"); 352 push(@out,".ident \"$func\"\n");
347 $stack=0; 353 $stack=0;
@@ -371,6 +377,8 @@ sub main'function_end_B
371 push(@out,".L_${func}_end:\n"); 377 push(@out,".L_${func}_end:\n");
372 if ($main'cpp) 378 if ($main'cpp)
373 { push(@out,"\tSIZE($func,.L_${func}_end-$func)\n"); } 379 { push(@out,"\tSIZE($func,.L_${func}_end-$func)\n"); }
380 elsif ($main'gaswin)
381 { push(@out,"\t.align 4\n"); }
374 else { push(@out,"\t.size\t$func,.L_${func}_end-$func\n"); } 382 else { push(@out,"\t.size\t$func,.L_${func}_end-$func\n"); }
375 push(@out,".ident \"desasm.pl\"\n"); 383 push(@out,".ident \"desasm.pl\"\n");
376 $stack=0; 384 $stack=0;