diff options
author | djm <> | 2008-09-06 12:17:54 +0000 |
---|---|---|
committer | djm <> | 2008-09-06 12:17:54 +0000 |
commit | 38ce604e3cc97706b876b0525ddff0121115456d (patch) | |
tree | 7ccc28afe1789ea3dbedf72365f955d5b8e105b5 /src/lib/libcrypto/perlasm/x86asm.pl | |
parent | 12867252827c8efaa8ddd1fa3b3d6e321e2bcdef (diff) | |
download | openbsd-38ce604e3cc97706b876b0525ddff0121115456d.tar.gz openbsd-38ce604e3cc97706b876b0525ddff0121115456d.tar.bz2 openbsd-38ce604e3cc97706b876b0525ddff0121115456d.zip |
resolve conflicts
Diffstat (limited to 'src/lib/libcrypto/perlasm/x86asm.pl')
-rw-r--r-- | src/lib/libcrypto/perlasm/x86asm.pl | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/lib/libcrypto/perlasm/x86asm.pl b/src/lib/libcrypto/perlasm/x86asm.pl index c3de90c65d..f535c9c7fa 100644 --- a/src/lib/libcrypto/perlasm/x86asm.pl +++ b/src/lib/libcrypto/perlasm/x86asm.pl | |||
@@ -18,7 +18,7 @@ sub main'asm_init | |||
18 | ($type,$fn,$i386)=@_; | 18 | ($type,$fn,$i386)=@_; |
19 | $filename=$fn; | 19 | $filename=$fn; |
20 | 20 | ||
21 | $elf=$cpp=$sol=$aout=$win32=$gaswin=$openbsd=0; | 21 | $elf=$cpp=$coff=$aout=$win32=$netware=$mwerks=$openbsd=0; |
22 | if ( ($type eq "elf")) | 22 | if ( ($type eq "elf")) |
23 | { $elf=1; require "x86unix.pl"; } | 23 | { $elf=1; require "x86unix.pl"; } |
24 | elsif ( ($type eq "openbsd-elf")) | 24 | elsif ( ($type eq "openbsd-elf")) |
@@ -27,28 +27,31 @@ sub main'asm_init | |||
27 | { $openbsd=1; require "x86unix.pl"; } | 27 | { $openbsd=1; require "x86unix.pl"; } |
28 | elsif ( ($type eq "a.out")) | 28 | elsif ( ($type eq "a.out")) |
29 | { $aout=1; require "x86unix.pl"; } | 29 | { $aout=1; require "x86unix.pl"; } |
30 | elsif ( ($type eq "gaswin")) | 30 | elsif ( ($type eq "coff" or $type eq "gaswin")) |
31 | { $gaswin=1; $aout=1; require "x86unix.pl"; } | 31 | { $coff=1; require "x86unix.pl"; } |
32 | elsif ( ($type eq "sol")) | ||
33 | { $sol=1; require "x86unix.pl"; } | ||
34 | elsif ( ($type eq "cpp")) | 32 | elsif ( ($type eq "cpp")) |
35 | { $cpp=1; require "x86unix.pl"; } | 33 | { $cpp=1; require "x86unix.pl"; } |
36 | elsif ( ($type eq "win32")) | 34 | elsif ( ($type eq "win32")) |
37 | { $win32=1; require "x86ms.pl"; } | 35 | { $win32=1; require "x86ms.pl"; } |
38 | elsif ( ($type eq "win32n")) | 36 | elsif ( ($type eq "win32n")) |
39 | { $win32=1; require "x86nasm.pl"; } | 37 | { $win32=1; require "x86nasm.pl"; } |
38 | elsif ( ($type eq "nw-nasm")) | ||
39 | { $netware=1; require "x86nasm.pl"; } | ||
40 | elsif ( ($type eq "nw-mwasm")) | ||
41 | { $netware=1; $mwerks=1; require "x86nasm.pl"; } | ||
40 | else | 42 | else |
41 | { | 43 | { |
42 | print STDERR <<"EOF"; | 44 | print STDERR <<"EOF"; |
43 | Pick one target type from | 45 | Pick one target type from |
44 | elf - linux, FreeBSD etc | 46 | elf - Linux, FreeBSD, Solaris x86, etc. |
45 | a.out - old linux | 47 | a.out - OpenBSD, DJGPP, etc. |
46 | sol - x86 solaris | 48 | coff - GAS/COFF such as Win32 targets |
47 | cpp - format so x86unix.cpp can be used | ||
48 | win32 - Windows 95/Windows NT | 49 | win32 - Windows 95/Windows NT |
49 | win32n - Windows 95/Windows NT NASM format | 50 | win32n - Windows 95/Windows NT NASM format |
50 | openbsd-elf - OpenBSD elf | 51 | openbsd-elf - OpenBSD elf |
51 | openbsd-a.out - OpenBSD a.out | 52 | openbsd-a.out - OpenBSD a.out |
53 | nw-nasm - NetWare NASM format | ||
54 | nw-mwasm- NetWare Metrowerks Assembler | ||
52 | EOF | 55 | EOF |
53 | exit(1); | 56 | exit(1); |
54 | } | 57 | } |
@@ -61,7 +64,7 @@ EOF | |||
61 | &comment("Don't even think of reading this code"); | 64 | &comment("Don't even think of reading this code"); |
62 | &comment("It was automatically generated by $filename"); | 65 | &comment("It was automatically generated by $filename"); |
63 | &comment("Which is a perl program used to generate the x86 assember for"); | 66 | &comment("Which is a perl program used to generate the x86 assember for"); |
64 | &comment("any of elf, a.out, BSDI, Win32, gaswin (for GNU as on Win32) or Solaris"); | 67 | &comment("any of ELF, a.out, COFF, Win32, ..."); |
65 | &comment("eric <eay\@cryptsoft.com>"); | 68 | &comment("eric <eay\@cryptsoft.com>"); |
66 | &comment(""); | 69 | &comment(""); |
67 | 70 | ||
@@ -96,7 +99,7 @@ $tmp | |||
96 | #ifdef OUT | 99 | #ifdef OUT |
97 | #define OK 1 | 100 | #define OK 1 |
98 | #define ALIGN 4 | 101 | #define ALIGN 4 |
99 | #if defined(__CYGWIN__) || defined(__DJGPP__) || defined(__MINGW32__) | 102 | #if defined(__CYGWIN__) || defined(__DJGPP__) || (__MINGW32__) |
100 | #undef SIZE | 103 | #undef SIZE |
101 | #undef TYPE | 104 | #undef TYPE |
102 | #define SIZE(a,b) | 105 | #define SIZE(a,b) |
@@ -130,6 +133,4 @@ BSDI - a.out with a very primative version of as. | |||
130 | EOF | 133 | EOF |
131 | } | 134 | } |
132 | 135 | ||
133 | sub main'align() {} # swallow align statements in 0.9.7 context | ||
134 | |||
135 | 1; | 136 | 1; |