Skip to content

Commit 6e52f09

Browse files
zenoalbisserbbandix
authored andcommitted
<third_party/openssl> Use chacha_vec.c to avoid hard/soft float mismatch.
But fall back to chacha_vec_arm.S when arm_neon_optional is used. Reviewed-by: Pierre Rossi <[email protected]> Change-Id: I1ea1f03d687c4b39fe4a322abb8ddb91113a1828 Reviewed-by: Zeno Albisser <[email protected]> Reviewed-by: Andras Becsi <[email protected]>
1 parent 7cd1fdc commit 6e52f09

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

chromium/third_party/openssl/openssl.gypi

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,14 +566,25 @@
566566
'openssl/crypto/aes/asm/aes-armv4.S',
567567
'openssl/crypto/bn/asm/armv4-gf2m.S',
568568
'openssl/crypto/bn/asm/armv4-mont.S',
569-
'openssl/crypto/chacha/chacha_vec_arm.S',
570569
'openssl/crypto/modes/asm/ghash-armv4.S',
571570
'openssl/crypto/poly1305/poly1305_arm.c',
572571
'openssl/crypto/poly1305/poly1305_arm_asm.S',
573572
'openssl/crypto/sha/asm/sha1-armv4-large.S',
574573
'openssl/crypto/sha/asm/sha256-armv4.S',
575574
'openssl/crypto/sha/asm/sha512-armv4.S',
576575
],
576+
'conditions': [
577+
['arm_float_abi=="hard"', {
578+
'openssl_arm_sources+': [
579+
'openssl/crypto/chacha/chacha_vec.c',
580+
],
581+
},
582+
{
583+
'openssl_arm_sources+': [
584+
'openssl/crypto/chacha/chacha_vec_arm.S',
585+
],
586+
}],
587+
],
577588
'openssl_arm_defines': [
578589
'OPENSSL_BN_ASM_GF2m',
579590
'OPENSSL_BN_ASM_MONT',

0 commit comments

Comments
 (0)