diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2013-07-22 16:32:19 +0100 |
---|---|---|
committer | Ben Dooks <ben.dooks@codethink.co.uk> | 2013-10-19 20:46:35 +0100 |
commit | 0ab89d0bf8054c3146ec06df357946bb87f36729 (patch) | |
tree | aaa65b475258e06bfc15b401e59f645f54b9d95c /arch/arm/Makefile | |
parent | f592d323bc2353db871d1e840f05b27e0730fb10 (diff) | |
download | linux-0ab89d0bf8054c3146ec06df357946bb87f36729.tar.bz2 |
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>
Diffstat (limited to 'arch/arm/Makefile')
-rw-r--r-- | arch/arm/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index a37a50f575a2..00696973d88d 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -16,6 +16,7 @@ LDFLAGS := LDFLAGS_vmlinux :=-p --no-undefined -X ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) LDFLAGS_vmlinux += --be8 +LDFLAGS_MODULE += --be8 endif OBJCOPYFLAGS :=-O binary -R .comment -S |