Fix building AArch32 CE implementations when target is ARMv6 arch
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 29 Jul 2017 11:34:23 +0000 (14:34 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 29 Jul 2017 11:34:44 +0000 (14:34 +0300)
commit4a7aa30ae9f3ce798dd886c2f2d4164c43027748
tree33cac0fab12d00fb687464e8d4c0ca2a2fe4e74f
parentb7cd44335d9cde43be6f693dca6399ed0762649c
Fix building AArch32 CE implementations when target is ARMv6 arch

* cipher/cipher-gcm-armv8-aarch32-ce.S: Select ARMv8 architecure.
* cipher/rijndael-armv8-aarch32-ce.S: Ditto.
* cipher/sha1-armv8-aarch32-ce.S: Ditto.
* cipher/sha256-armv8-aarch32-ce.S: Ditto.
* configure.ac (gcry_cv_gcc_inline_asm_aarch32_crypto): Ditto.
--

Raspbian distribution defaults to ARMv6 architecture thus 'rbit'
instruction is not available with default compiler flags. Patch
adds explicit architecture selection for ARMv8 to enable 'rbit'
usage with ARMv8/AArch32-CE assembly implementations of SHA,
GHASH and AES.

Reported-by: Chris Horry <zerbey@gmail.com>
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/cipher-gcm-armv8-aarch32-ce.S
cipher/rijndael-armv8-aarch32-ce.S
cipher/sha1-armv8-aarch32-ce.S
cipher/sha256-armv8-aarch32-ce.S
configure.ac