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 Hackmann <ghackmann@google.com>
Mon, 12 Jan 2015 21:02:07 +0000 (13:02 -0800)
commit47c7a7c1f8f53e7d4f5ab38cac484718b6840c30
treebe0a21d989829ef30b08e2fbfab27aa4d148c379
parent7c8865cc8b5afabec1952a172dbd79350e1844c0
ARM: 7837/3: fix Thumb-2 bug in AES assembler code

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>
Cc: stable@vger.kernel.org
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/crypto/aes-armv4.S