From c089c4500b0b78acf03ee5405ad250a84b0dfa66 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 1 Dec 2019 17:44:24 +0300 Subject: Import python3.7 (3.7.5-2) --- debian/patches/arm-alignment.diff | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 debian/patches/arm-alignment.diff (limited to 'debian/patches/arm-alignment.diff') diff --git a/debian/patches/arm-alignment.diff b/debian/patches/arm-alignment.diff new file mode 100644 index 0000000..a7a4b39 --- /dev/null +++ b/debian/patches/arm-alignment.diff @@ -0,0 +1,17 @@ +Author: Dave Jones +Description: Use aligned access for _sha3 module on ARM. +--- a/Modules/_sha3/sha3module.c ++++ b/Modules/_sha3/sha3module.c +@@ -64,6 +64,12 @@ + #define PLATFORM_BYTE_ORDER IS_BIG_ENDIAN + #endif + ++/* Bus error on 32-bit ARM due to un-aligned memory accesses; 64-bit ARM ++ * doesn't complain but un-aligned memory accesses are sub-optimal */ ++#if defined(__arm__) || defined(__aarch64__) ++#define NO_MISALIGNED_ACCESSES ++#endif ++ + /* mangle names */ + #define KeccakF1600_FastLoop_Absorb _PySHA3_KeccakF1600_FastLoop_Absorb + #define Keccak_HashFinal _PySHA3_Keccak_HashFinal -- cgit v1.2.3