diff options
author | markus <> | 2003-11-18 12:39:05 +0000 |
---|---|---|
committer | markus <> | 2003-11-18 12:39:05 +0000 |
commit | 3cf6590e9b2b978b44c38897634f84fbf167db4f (patch) | |
tree | 7f604b9764cd13753c7602979f5424b7dc97e04b /src/lib/libcrypto/perlasm/x86asm.pl | |
parent | 56f777457f24d2899caf9b29a79285b5753e3e9b (diff) | |
download | openbsd-3cf6590e9b2b978b44c38897634f84fbf167db4f.tar.gz openbsd-3cf6590e9b2b978b44c38897634f84fbf167db4f.tar.bz2 openbsd-3cf6590e9b2b978b44c38897634f84fbf167db4f.zip |
use bn_asm_vax.S (from netbsd); test + ok by miod
use asm code for i386, except for the CBC code, because
it is not clean PIC code.
add <machime/asm.h> support to x86unix.pl
tested by: nick (on 30386), henning, djm, tedu, jmc and more;
no shlib minor crank necessary, only internal symbols changed.
Diffstat (limited to 'src/lib/libcrypto/perlasm/x86asm.pl')
-rw-r--r-- | src/lib/libcrypto/perlasm/x86asm.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/perlasm/x86asm.pl b/src/lib/libcrypto/perlasm/x86asm.pl index 1cb96e914a..7c675e3ced 100644 --- a/src/lib/libcrypto/perlasm/x86asm.pl +++ b/src/lib/libcrypto/perlasm/x86asm.pl | |||
@@ -18,9 +18,13 @@ 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=0; | 21 | $elf=$cpp=$sol=$aout=$win32=$gaswin=$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")) | ||
25 | { $openbsd=$elf=1; require "x86unix.pl"; } | ||
26 | elsif ( ($type eq "openbsd-a.out")) | ||
27 | { $openbsd=1; require "x86unix.pl"; } | ||
24 | elsif ( ($type eq "a.out")) | 28 | elsif ( ($type eq "a.out")) |
25 | { $aout=1; require "x86unix.pl"; } | 29 | { $aout=1; require "x86unix.pl"; } |
26 | elsif ( ($type eq "gaswin")) | 30 | elsif ( ($type eq "gaswin")) |
@@ -43,6 +47,8 @@ Pick one target type from | |||
43 | cpp - format so x86unix.cpp can be used | 47 | cpp - format so x86unix.cpp can be used |
44 | win32 - Windows 95/Windows NT | 48 | win32 - Windows 95/Windows NT |
45 | win32n - Windows 95/Windows NT NASM format | 49 | win32n - Windows 95/Windows NT NASM format |
50 | openbsd-elf - OpenBSD elf | ||
51 | openbsd-a.out - OpenBSD a.out | ||
46 | EOF | 52 | EOF |
47 | exit(1); | 53 | exit(1); |
48 | } | 54 | } |