From 3cc9a89dda7165f9363f06db3559c5dea043bb73 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Fri, 3 Jan 2003 17:37:53 +0000 Subject: Unified targets for ELF assembler modules. Tested on Linux, Solaris and FreeBSD. Goal is to extend support even to SCO5, UnixWare/OpenUnix... --- crypto/des/asm/crypt586.pl | 5 +++-- crypto/des/asm/des-586.pl | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'crypto/des/asm') diff --git a/crypto/des/asm/crypt586.pl b/crypto/des/asm/crypt586.pl index 51fb3ddf26..1d04ed6def 100644 --- a/crypto/des/asm/crypt586.pl +++ b/crypto/des/asm/crypt586.pl @@ -32,8 +32,9 @@ sub fcrypt_body &xor( $R, $R); # PIC-ification:-) - if ($cpp) { &picmeup("edx","DES_SPtrans"); } - else { &lea("edx",&DWP("DES_SPtrans")); } + &picmeup("edx","DES_SPtrans"); + #if ($cpp) { &picmeup("edx","DES_SPtrans"); } + #else { &lea("edx",&DWP("DES_SPtrans")); } &push("edx"); # becomes &swtmp(1) # &mov($trans,&wparam(1)); # reloaded with DES_SPtrans in D_ENCRYPT diff --git a/crypto/des/asm/des-586.pl b/crypto/des/asm/des-586.pl index 7a58869289..b75d3c6b3a 100644 --- a/crypto/des/asm/des-586.pl +++ b/crypto/des/asm/des-586.pl @@ -73,8 +73,9 @@ sub DES_encrypt } # PIC-ification:-) - if ($cpp) { &picmeup($trans,"DES_SPtrans"); } - else { &lea($trans,&DWP("DES_SPtrans")); } + &picmeup($trans,"DES_SPtrans"); + #if ($cpp) { &picmeup($trans,"DES_SPtrans"); } + #else { &lea($trans,&DWP("DES_SPtrans")); } &mov( "ecx", &wparam(1) ); &cmp("ebx","0"); -- cgit v1.2.3