ARM: module: correctly relocate instructions in BE8
authorBen Dooks <ben.dooks@codethink.co.uk>
Fri, 19 Jul 2013 17:27:23 +0000 (18:27 +0100)
committerVictor Kamensky <victor.kamensky@linaro.org>
Thu, 13 Mar 2014 21:48:34 +0000 (14:48 -0700)
commita973c8bf09c8312c5127662f12cd7b1267064ef7
tree050e6bab15e10f780a04c7ac0c9ed8448180ec8e
parent2a08f5bc8607f1fcc8345c2a9d60f16210debeb5
ARM: module: correctly relocate instructions in BE8

When in BE8 mode, our instructions are not in the same ordering as the
data, so use <asm/opcodes.h> to take this into account.

Note, also requires modules to be built --be8

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
(cherry picked from commit f592d323bc2353db871d1e840f05b27e0730fb10)

Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
arch/arm/kernel/module.c