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)
committerBen Dooks <ben.dooks@codethink.co.uk>
Sat, 19 Oct 2013 19:46:35 +0000 (20:46 +0100)
commitf592d323bc2353db871d1e840f05b27e0730fb10
tree1aadf4e83ae5dd01e1c5a2d025fbba7b8e29c104
parenta79a0cb1d35ec422dcf493cef1bebf9fdfcfdb9a
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>
arch/arm/kernel/module.c