From b5565d9f20514e6aee34a8beb128ad836d739bf9 Mon Sep 17 00:00:00 2001 From: kettenis <> Date: Sun, 7 Jan 2018 12:35:52 +0000 Subject: On OpenBSD/armv7 we deliberately trap unaligned access. Unfortunately the assembly code in libcrypto assumes unaligned access is allowed for ARMv7. Make these paths conditional on __STRICT_ALIGNMENT not being defined and define __STRICT_ALIGNMENT in arm_arch.h for OpenBSD. ok tom@ --- src/lib/libcrypto/arm_arch.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/arm_arch.h') diff --git a/src/lib/libcrypto/arm_arch.h b/src/lib/libcrypto/arm_arch.h index 3304be81ab..8b8a05b5f7 100644 --- a/src/lib/libcrypto/arm_arch.h +++ b/src/lib/libcrypto/arm_arch.h @@ -1,4 +1,4 @@ -/* $OpenBSD: arm_arch.h,v 1.7 2015/06/29 06:40:06 jsg Exp $ */ +/* $OpenBSD: arm_arch.h,v 1.8 2018/01/07 12:35:52 kettenis Exp $ */ #ifndef __ARM_ARCH_H__ #define __ARM_ARCH_H__ @@ -44,4 +44,8 @@ extern unsigned int OPENSSL_armcap_P; #define ARMV7_NEON (1<<0) #endif +#if defined(__OpenBSD__) +#define __STRICT_ALIGNMENT +#endif + #endif -- cgit v1.2.3-55-g6feb