OPENSSL_cpuid_setup() is invoked via OPENSSL_init_crypto(), whihc is
triggered by various entry points to the library. As such, we do not need
to invoke it as a constructor.
ok tb@
-/* $OpenBSD: arm64cap.c,v 1.2 2022/03/25 17:42:07 robert Exp $ */
+/* $OpenBSD: arm64cap.c,v 1.3 2023/07/26 09:57:34 jsing Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
unsigned int OPENSSL_armcap_P;
-#if defined(__GNUC__) && __GNUC__ >= 2
-void OPENSSL_cpuid_setup(void) __attribute__((constructor));
-#endif
-
#if defined(CPU_ID_AA64ISAR0)
void
OPENSSL_cpuid_setup(void)
-/* $OpenBSD: armcap.c,v 1.1 2022/03/23 15:13:31 tb Exp $ */
+/* $OpenBSD: armcap.c,v 1.2 2023/07/26 09:57:34 jsing Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void _armv8_pmull_probe(void);
#endif
-#if defined(__GNUC__) && __GNUC__>=2
-void OPENSSL_cpuid_setup(void) __attribute__((constructor));
-#endif
-
void
OPENSSL_cpuid_setup(void)
{