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, Jun 20, 2011 at 10:03:19AM +0200, S.P.Zeidler wrote:
> .section      .init
>       call    OPENSSL_cpuid_setup

The problem is OPENSSL_cpuid_setup has default visibility, so it won't
replaced by a reference to the locally defined symbol. As a direct
result, this is turned into a text relocation.

Variant one:
        Use OPENSSL_cpuid_setup@PLT
Variant two:
        Drop the .init section and change OPENSSL_cpuid_setup to have
        the constructor attribute.


Home | Main Index | Thread Index | Old Index