diff options
author | kettenis <> | 2018-01-07 12:35:52 +0000 |
---|---|---|
committer | kettenis <> | 2018-01-07 12:35:52 +0000 |
commit | b5565d9f20514e6aee34a8beb128ad836d739bf9 (patch) | |
tree | d4ae0f75dc0e9b838b63ab32052ba4154f16910d /src/lib/libcrypto/arm_arch.h | |
parent | bf59c7f1f430d5203f39c3206e7df506fe74264b (diff) | |
download | openbsd-b5565d9f20514e6aee34a8beb128ad836d739bf9.tar.gz openbsd-b5565d9f20514e6aee34a8beb128ad836d739bf9.tar.bz2 openbsd-b5565d9f20514e6aee34a8beb128ad836d739bf9.zip |
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@
Diffstat (limited to 'src/lib/libcrypto/arm_arch.h')
-rw-r--r-- | src/lib/libcrypto/arm_arch.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 @@ | |||
1 | /* $OpenBSD: arm_arch.h,v 1.7 2015/06/29 06:40:06 jsg Exp $ */ | 1 | /* $OpenBSD: arm_arch.h,v 1.8 2018/01/07 12:35:52 kettenis Exp $ */ |
2 | #ifndef __ARM_ARCH_H__ | 2 | #ifndef __ARM_ARCH_H__ |
3 | #define __ARM_ARCH_H__ | 3 | #define __ARM_ARCH_H__ |
4 | 4 | ||
@@ -44,4 +44,8 @@ extern unsigned int OPENSSL_armcap_P; | |||
44 | #define ARMV7_NEON (1<<0) | 44 | #define ARMV7_NEON (1<<0) |
45 | #endif | 45 | #endif |
46 | 46 | ||
47 | #if defined(__OpenBSD__) | ||
48 | #define __STRICT_ALIGNMENT | ||
49 | #endif | ||
50 | |||
47 | #endif | 51 | #endif |