Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: assembler/toolchain clue needed for openssl aesni feature

On Mon, 20 Jun 2011 10:03:19 +0200, S.P.Zeidler wrote:
so no missing -fPIC. I assume it's something in the new x86_64cpuid.S.
My x86 assembler knowledge is null.

I've attached x86_64cpuid.S, any enlightenment for me?

I don't know what the resulting binary is here, but I would say that the "call OPENSSL_cpuid_setup" in the .init section cannot be relocated as it's in a read-only (.init) section. Remove it and see what happens? IIRC, OPENSSL_cpuid_setup is explicitly called during libcrypto initialization.

--- x86_64cpuid.S.orig  2011-06-20 11:12:17.000000000 +0200
+++ x86_64cpuid.S       2011-06-20 11:12:24.000000000 +0200
@@ -1,7 +1,3 @@
-.section       .init
-       call    OPENSSL_cpuid_setup

 .globl OPENSSL_atomic_add

Jean-Yves Migeon

Home | Main Index | Thread Index | Old Index