diff options
| author | beck <> | 1999-09-29 04:37:45 +0000 |
|---|---|---|
| committer | beck <> | 1999-09-29 04:37:45 +0000 |
| commit | de8f24ea083384bb66b32ec105dc4743c5663cdf (patch) | |
| tree | 1412176ae62a3cab2cf2b0b92150fcbceaac6092 /src/lib/libcrypto/perlasm/x86asm.pl | |
| parent | cb929d29896bcb87c2a97417fbd03e50078fc178 (diff) | |
| download | openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.gz openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.bz2 openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.zip | |
OpenSSL 0.9.4 merge
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/perlasm/x86asm.pl | 11 |
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 | ||
| 16 | sub main'asm_init | 16 | sub 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 | ||
| 41 | EOF | 44 | EOF |
| 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 |
