ARM: set --be8 when linking modules
authorBen Dooks <ben.dooks@codethink.co.uk>
Mon, 22 Jul 2013 15:32:19 +0000 (16:32 +0100)
committerVictor Kamensky <victor.kamensky@linaro.org>
Thu, 13 Mar 2014 21:48:35 +0000 (14:48 -0700)
commitf948a286a732c65e1b21588ebdd429aee1b79492
treeea102abcef950daa1272fc286a5e866cbb11fe98
parenta973c8bf09c8312c5127662f12cd7b1267064ef7
ARM: set --be8 when linking modules

To avoid having to make every text section swap the instruction order
of all instructions, make sure modules are built also built with --be8
(as is the current kernel final link).

If we do not do this, we would end up having to swap all instructions
when loading a module, instead of just the instructions that we are
applying ELF relocations to.

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

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