tech-userlevel archive

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

Re: OpenSSL vs. getauxval()



In article <20180929224713.GA14979%mail.duskware.de@localhost>,
Martin Husemann  <martin%duskware.de@localhost> wrote:
>Hey folks,
>
>openssl on arm uses a weak symbol reference to "getauxval", and if the
>symbol is available, calls it to get hardware information about the
>current cpu.
>
>We never make this kind of hardware information availble via flags in the
>exec auxval vector, but use sysctl instead. We also do not provide a getauxval
>function.
>
>So far all fine.
>
>However, openssl is a library and should not assume special meaning for 
>unprotected symbols. Some third party apss come with a local getauxval
>implementation and confuse things.
>
>I wonder if we should just disable the getauxval code path on NetBSD (and
>maybe as a future extension even provide the proper sysctl code to get the
>hw capabilities via sysctl)?

That's fine.

christos



Home | Main Index | Thread Index | Old Index