Ensure there's only one copy of OPENSSL_armcap_P in libcrypto.a

Change-Id: Ia94e528a2d55934435de6a2949784c52eb38d82f

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20621)
This commit is contained in:
Tom Cosgrove 2023-03-27 22:05:13 +01:00 committed by Tomas Mraz
parent c3637cafd3
commit 7b508cd1e1
9 changed files with 8 additions and 11 deletions

View File

@ -25,9 +25,7 @@
#endif
#include "arm_arch.h"
#ifdef __aarch64__
unsigned int OPENSSL_armcap_P = 0;
#endif
unsigned int OPENSSL_arm_midr = 0;
unsigned int OPENSSL_armv8_rsa_neonized = 0;

View File

@ -292,8 +292,7 @@ atomic_add_spinlock:
.word 0
#endif
.comm OPENSSL_armcap_P,4,4
.hidden OPENSSL_armcap_P
.extern OPENSSL_armcap_P
___
print $code;

View File

@ -325,7 +325,7 @@ $code.=<<___;
.align 5
#if __ARM_MAX_ARCH__>=7
.comm OPENSSL_armcap_P,4,4
.extern OPENSSL_armcap_P
#endif
___

View File

@ -749,7 +749,7 @@ $code.=<<___;
.asciz "Montgomery multiplication for ARMv4/NEON, CRYPTOGAMS by <appro\@openssl.org>"
.align 2
#if __ARM_MAX_ARCH__>=7
.comm OPENSSL_armcap_P,4,4
.extern OPENSSL_armcap_P
#endif
___

View File

@ -1154,7 +1154,7 @@ $code.=<<___;
add sp,sp,#4*(16+3)
ldmia sp!,{r4-r11,pc}
.size ChaCha20_neon,.-ChaCha20_neon
.comm OPENSSL_armcap_P,4,4
.extern OPENSSL_armcap_P
#endif
___
}}}

View File

@ -1239,7 +1239,7 @@ $code.=<<___;
.asciz "Poly1305 for ARMv4/NEON, CRYPTOGAMS by <appro\@openssl.org>"
.align 2
#if __ARM_MAX_ARCH__>=7
.comm OPENSSL_armcap_P,4,4
.extern OPENSSL_armcap_P
#endif
___

View File

@ -707,7 +707,7 @@ ___
}}}
$code.=<<___;
#if __ARM_MAX_ARCH__>=7
.comm OPENSSL_armcap_P,4,4
.extern OPENSSL_armcap_P
#endif
___

View File

@ -693,7 +693,7 @@ $code.=<<___;
.asciz "SHA256 block transform for ARMv4/NEON/ARMv8, CRYPTOGAMS by <appro\@openssl.org>"
.align 2
#if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__)
.comm OPENSSL_armcap_P,4,4
.extern OPENSSL_armcap_P
#endif
___

View File

@ -660,7 +660,7 @@ $code.=<<___;
.asciz "SHA512 block transform for ARMv4/NEON, CRYPTOGAMS by <appro\@openssl.org>"
.align 2
#if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__)
.comm OPENSSL_armcap_P,4,4
.extern OPENSSL_armcap_P
#endif
___