summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto/perlasm
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2011-11-03 02:34:28 +0000
committerdjm <djm@openbsd.org>2011-11-03 02:34:28 +0000
commitc32db552feb5310e2f4b27f02d313cfbf0b82a8a (patch)
treeb7b6074be11e20dcb5106c8a27f96bcb3fcdf5c2 /lib/libssl/src/crypto/perlasm
parentimport OpenSSL 1.0.0e (diff)
downloadwireguard-openbsd-c32db552feb5310e2f4b27f02d313cfbf0b82a8a.tar.xz
wireguard-openbsd-c32db552feb5310e2f4b27f02d313cfbf0b82a8a.zip
openssl-1.0.0e: resolve conflicts
Diffstat (limited to 'lib/libssl/src/crypto/perlasm')
-rw-r--r--lib/libssl/src/crypto/perlasm/cbc.pl2
-rwxr-xr-xlib/libssl/src/crypto/perlasm/x86_64-xlate.pl6
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/libssl/src/crypto/perlasm/cbc.pl b/lib/libssl/src/crypto/perlasm/cbc.pl
index e43dc9ae15e..6fc2510905b 100644
--- a/lib/libssl/src/crypto/perlasm/cbc.pl
+++ b/lib/libssl/src/crypto/perlasm/cbc.pl
@@ -158,7 +158,6 @@ sub cbc
&jmp_ptr($count);
&set_label("ej7");
- &xor("edx", "edx") if $ppro; # ppro friendly
&movb(&HB("edx"), &BP(6,$in,"",0));
&shl("edx",8);
&set_label("ej6");
@@ -170,7 +169,6 @@ sub cbc
&jmp(&label("ejend"));
&set_label("ej3");
&movb(&HB("ecx"), &BP(2,$in,"",0));
- &xor("ecx", "ecx") if $ppro; # ppro friendly
&shl("ecx",8);
&set_label("ej2");
&movb(&HB("ecx"), &BP(1,$in,"",0));
diff --git a/lib/libssl/src/crypto/perlasm/x86_64-xlate.pl b/lib/libssl/src/crypto/perlasm/x86_64-xlate.pl
index d66ad240959..68b4c1ca809 100755
--- a/lib/libssl/src/crypto/perlasm/x86_64-xlate.pl
+++ b/lib/libssl/src/crypto/perlasm/x86_64-xlate.pl
@@ -167,7 +167,7 @@ my %globals;
} elsif ($self->{op} =~ /^(pop|push)f/) {
$self->{op} .= $self->{sz};
} elsif ($self->{op} eq "call" && $current_segment eq ".CRT\$XCU") {
- $self->{op} = "ALIGN\t8\n\tDQ";
+ $self->{op} = "\tDQ";
}
$self->{op};
}
@@ -546,6 +546,8 @@ my %globals;
if ($line=~/\.([px])data/) {
$v.=" rdata align=";
$v.=$1 eq "p"? 4 : 8;
+ } elsif ($line=~/\.CRT\$/i) {
+ $v.=" rdata align=8";
}
} else {
$v="$current_segment\tENDS\n" if ($current_segment);
@@ -553,6 +555,8 @@ my %globals;
if ($line=~/\.([px])data/) {
$v.=" READONLY";
$v.=" ALIGN(".($1 eq "p" ? 4 : 8).")" if ($masm>=$masmref);
+ } elsif ($line=~/\.CRT\$/i) {
+ $v.=" READONLY DWORD";
}
}
$current_segment = $line;