[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 12:02:17PM +0200, Joerg Sonnenberger wrote:
> 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.
3: Add another symbol equal to OPENSSL_cpuid_setup but with internal (?)
visibility so that the call can be fixed up by the linker.
4: Use a C function for .init
David Laight: david%l8s.co.uk@localhost
Main Index |
Thread Index |