Hi,
enclosed please find a patch against current 0.9.8k-2 package
for both kfreebsd-amd64 problems.
Petr
diff -ur openssl-0.9.8k/crypto/perlasm/x86_64-xlate.pl openssl-0.9.8k/crypto/perlasm/x86_64-xlate.pl
--- openssl-0.9.8k/crypto/perlasm/x86_64-xlate.pl
+++ openssl-0.9.8k/crypto/perlasm/x86_64-xlate.pl
@@ -62,7 +62,7 @@
my ($outdev,$outino,@junk)=stat($output);
open STDOUT,">$output" || die "can't open $output: $!"
- if ($stddev!=$outdev || $stdino!=$outino);
+# if ($stddev!=$outdev || $stdino!=$outino);
}
my $masmref=8 + 50727*2**-32; # 8.00.50727 shipped with VS2005
diff -ur openssl-0.9.8k/crypto/rc4/asm/rc4-x86_64.pl openssl-0.9.8k/crypto/rc4/asm/rc4-x86_64.pl
--- openssl-0.9.8k/crypto/rc4/asm/rc4-x86_64.pl
+++ openssl-0.9.8k/crypto/rc4/asm/rc4-x86_64.pl
@@ -270,7 +270,7 @@
xor %r10,%r10
xor %r11,%r11
- mov OPENSSL_ia32cap_P(%rip),$idx#d
+ movl openssl_ia32cap...@gotpcrel(%rip),$idx#d
bt \$20,$idx#d
jnc .Lw1stloop
bt \$30,$idx#d
@@ -338,7 +338,7 @@
RC4_options:
.picmeup %rax
lea .Lopts-.(%rax),%rax
- mov OPENSSL_ia32cap_P(%rip),%edx
+ movl openssl_ia32cap...@gotpcrel(%rip),%edx
bt \$20,%edx
jnc .Ldone
add \$12,%rax