summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/perlasm/x86asm.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/perlasm/x86asm.pl')
-rw-r--r--src/lib/libcrypto/perlasm/x86asm.pl11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/libcrypto/perlasm/x86asm.pl b/src/lib/libcrypto/perlasm/x86asm.pl
index 6a9156ae9a..44e330eb8d 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,7 +15,7 @@ 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=0;
@@ -29,6 +29,8 @@ sub main'asm_init
29 { $cpp=1; require "x86unix.pl"; } 29 { $cpp=1; require "x86unix.pl"; }
30 elsif ( ($type eq "win32")) 30 elsif ( ($type eq "win32"))
31 { $win32=1; require "x86ms.pl"; } 31 { $win32=1; require "x86ms.pl"; }
32 elsif ( ($type eq "win32n"))
33 { $win32=1; require "x86nasm.pl"; }
32 else 34 else
33 { 35 {
34 print STDERR <<"EOF"; 36 print STDERR <<"EOF";
@@ -38,6 +40,7 @@ Pick one target type from
38 sol - x86 solaris 40 sol - x86 solaris
39 cpp - format so x86unix.cpp can be used 41 cpp - format so x86unix.cpp can be used
40 win32 - Windows 95/Windows NT 42 win32 - Windows 95/Windows NT
43 win32n - Windows 95/Windows NT NASM format
41EOF 44EOF
42 exit(1); 45 exit(1);
43 } 46 }
@@ -75,7 +78,7 @@ sub asm_finish_cpp
75#define TYPE(a,b) .type a,b 78#define TYPE(a,b) .type a,b
76#define SIZE(a,b) .size a,b 79#define SIZE(a,b) .size a,b
77 80
78#if defined(OUT) || defined(BSDI) 81#if defined(OUT) || (defined(BSDI) && !defined(ELF))
79$tmp 82$tmp
80#endif 83#endif
81 84
@@ -84,7 +87,7 @@ $tmp
84#define ALIGN 4 87#define ALIGN 4
85#endif 88#endif
86 89
87#ifdef BSDI 90#if defined(BSDI) && !defined(ELF)
88#define OK 1 91#define OK 1
89#define ALIGN 4 92#define ALIGN 4
90#undef SIZE 93#undef SIZE