summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/perlasm
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/perlasm')
-rw-r--r--src/lib/libcrypto/perlasm/cbc.pl2
-rw-r--r--src/lib/libcrypto/perlasm/x86asm.pl17
2 files changed, 12 insertions, 7 deletions
diff --git a/src/lib/libcrypto/perlasm/cbc.pl b/src/lib/libcrypto/perlasm/cbc.pl
index 2789305790..0145c4f0cc 100644
--- a/src/lib/libcrypto/perlasm/cbc.pl
+++ b/src/lib/libcrypto/perlasm/cbc.pl
@@ -1,4 +1,4 @@
1#!/usr/bin/perl 1#!/usr/local/bin/perl
2 2
3# void des_ncbc_encrypt(input, output, length, schedule, ivec, enc) 3# void des_ncbc_encrypt(input, output, length, schedule, ivec, enc)
4# des_cblock (*input); 4# des_cblock (*input);
diff --git a/src/lib/libcrypto/perlasm/x86asm.pl b/src/lib/libcrypto/perlasm/x86asm.pl
index 6a9156ae9a..81c6e64e87 100644
--- a/src/lib/libcrypto/perlasm/x86asm.pl
+++ b/src/lib/libcrypto/perlasm/x86asm.pl
@@ -1,4 +1,4 @@
1#!/usr/bin/perl 1#!/usr/local/bin/perl
2 2
3# require 'x86asm.pl'; 3# require 'x86asm.pl';
4# &asm_init("cpp","des-586.pl"); 4# &asm_init("cpp","des-586.pl");
@@ -15,20 +15,24 @@ sub main'asm_finish
15 15
16sub main'asm_init 16sub main'asm_init
17 { 17 {
18 ($type,$fn)=@_; 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"))
29 { $cpp=1; require "x86unix.pl"; } 31 { $cpp=1; require "x86unix.pl"; }
30 elsif ( ($type eq "win32")) 32 elsif ( ($type eq "win32"))
31 { $win32=1; require "x86ms.pl"; } 33 { $win32=1; require "x86ms.pl"; }
34 elsif ( ($type eq "win32n"))
35 { $win32=1; require "x86nasm.pl"; }
32 else 36 else
33 { 37 {
34 print STDERR <<"EOF"; 38 print STDERR <<"EOF";
@@ -38,6 +42,7 @@ Pick one target type from
38 sol - x86 solaris 42 sol - x86 solaris
39 cpp - format so x86unix.cpp can be used 43 cpp - format so x86unix.cpp can be used
40 win32 - Windows 95/Windows NT 44 win32 - Windows 95/Windows NT
45 win32n - Windows 95/Windows NT NASM format
41EOF 46EOF
42 exit(1); 47 exit(1);
43 } 48 }
@@ -47,7 +52,7 @@ EOF
47&comment("Don't even think of reading this code"); 52&comment("Don't even think of reading this code");
48&comment("It was automatically generated by $filename"); 53&comment("It was automatically generated by $filename");
49&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");
50&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");
51&comment("eric <eay\@cryptsoft.com>"); 56&comment("eric <eay\@cryptsoft.com>");
52&comment(""); 57&comment("");
53 58
@@ -75,7 +80,7 @@ sub asm_finish_cpp
75#define TYPE(a,b) .type a,b 80#define TYPE(a,b) .type a,b
76#define SIZE(a,b) .size a,b 81#define SIZE(a,b) .size a,b
77 82
78#if defined(OUT) || defined(BSDI) 83#if defined(OUT) || (defined(BSDI) && !defined(ELF))
79$tmp 84$tmp
80#endif 85#endif
81 86
@@ -84,7 +89,7 @@ $tmp
84#define ALIGN 4 89#define ALIGN 4
85#endif 90#endif
86 91
87#ifdef BSDI 92#if defined(BSDI) && !defined(ELF)
88#define OK 1 93#define OK 1
89#define ALIGN 4 94#define ALIGN 4
90#undef SIZE 95#undef SIZE