ARM: 7837/3: fix Thumb-2 bug in AES assembler code
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Sat, 21 Sep 2013 10:23:50 +0000 (11:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2013 14:13:10 +0000 (07:13 -0700)
commitace53ef6a91d0afcb4f45fa06d162fe45c7c3b2f
treee28926b49b3f1229a064099725ba9e3d0e389d5b
parent20d7e144c93a9f06224fc983cb5b248bb5bc87fb
ARM: 7837/3: fix Thumb-2 bug in AES assembler code

commit 40190c85f427dcfdbab5dbef4ffd2510d649da1f upstream.

Patch 638591c enabled building the AES assembler code in Thumb2 mode.
However, this code used arithmetic involving PC rather than adr{l}
instructions to generate PC-relative references to the lookup tables,
and this needs to take into account the different PC offset when
running in Thumb mode.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/crypto/aes-armv4.S