[Pkg-openssl-devel] Bug#532336: Bug#532336: openssl: wrong results of rc4 on kfreebsd-amd64 with genuine Intel CPUs

Petr Salinger Petr.Salinger at seznam.cz
Mon Jun 8 17:29:59 UTC 2009


>> Contrary to upstream, under debian linux on amd64 uses RC4_CHAR
>> and does not use asm file rc4-x86_64.pl.
>
> So if I change it to use the asm file for kFreeBSD, like I wanted
> to do, this should be fixed too?

I just checked it, it passes testsuite of rc4.
Fliping commented and uncommented lines of "my $x86_64_asm"
is sufficient (tested only on genuine Intel CPU) for testsuite of rc4.

Unfortunately whole build ends with:

   /usr/bin/ld: libcrypto.a(rc4-x86_64.o): relocation R_X86_64_PC32 against
     symbol `OPENSSL_ia32cap_P' can not be used when making a shared
     object; recompile with -fPIC
   /usr/bin/ld: final link failed: Bad value
   collect2: ld returned 1 exit status

It looks like crypto/rc4/asm/rc4-x86_64.pl is not PIC/non-PIC ready.

Petr





More information about the Pkg-openssl-devel mailing list