From 06cf2ede9e043b4c25eb3521cf67fcebb41b7629 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 18 Aug 2018 04:31:49 -0400 Subject: [PATCH] Disable ASM and intrinsics for ARM big-endian We don't have a test rig to test things. Based on our experience with Power8 and BE/LE, there will be trouble --- config.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.h b/config.h index c7d1ca3b..03368f5b 100644 --- a/config.h +++ b/config.h @@ -593,6 +593,12 @@ NAMESPACE_END // ***************** ARM CPU features ******************** #if (CRYPTOPP_BOOL_ARM32 || CRYPTOPP_BOOL_ARM64) + +// We don't have an ARM big endian test rig. Disable +// ARM-BE ASM and instrinsics until we can test it. +#if defined(CRYPTOPP_BIG_ENDIAN) +# define CRYPTOPP_DISABLE_ASM 1 +#endif // Requires ARMv7 and ACLE 1.0. -march=armv7-a or above must be present // Requires GCC 4.3, Clang 2.8 or Visual Studio 2012