Prefer GNU library initialization mechanism over platform one
authorJon Spillett <jon.spillett@oracle.com>
Thu, 21 Apr 2022 06:49:04 +0000 (16:49 +1000)
committerTomas Mraz <tomas@openssl.org>
Wed, 27 Apr 2022 08:08:43 +0000 (10:08 +0200)
commit8e03413d87395fdf39f67a588daaac1750d266d6
tree2f8950b0b1396b282df364d6605eff0598d408f6
parentc1a5e4c564742354148e3aab1f81a9b0177e832c
Prefer GNU library initialization mechanism over platform one

If GNU toolchain is used, use the __attribute__((constructor))

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18147)

(cherry picked from commit 2dc3a4a4a57eca0d9bebd87234c7d682506188fc)
providers/fips/self_test.c