crypto/armcap.c, crypto/ppccap.c: stricter use of getauxval()
authorRichard Levitte <levitte@openssl.org>
Wed, 16 Jan 2019 05:31:15 +0000 (06:31 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 16 Jan 2019 17:04:22 +0000 (18:04 +0100)
commitb36b1632e20f7d218f23c36e9c55ea44e4be7f97
tree41df0d3cd98b4808fe113801c1bed0d71b340b0e
parent6ffcd10ade7fac6cd08dff3dba304b9d8d9de0a4
crypto/armcap.c, crypto/ppccap.c: stricter use of getauxval()

Having a weak getauxval() and only depending on GNU C without looking
at the library we build against meant that it got picked up where not
really expected.

So we change this to check for the glibc version, and since we know it
exists from that version, there's no real need to make it weak.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/8028)

(cherry picked from commit 5f40dd158cbfa0a3bd86c32f7a77fec8754bb245)
crypto/armcap.c
crypto/ppccap.c