summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2013-07-22 16:32:19 +0100
committerBen Dooks <ben.dooks@codethink.co.uk>2013-07-22 17:45:45 +0100
commitd63079bf9ac18808f8555969970aa8b191cf5848 (patch)
tree9acb86cb9f2a8ae946d65b5782be85891e6379b2
parent4eddf53af51d86dbb3d962efb3f0de451d6e8875 (diff)
downloadlinux-baserock/311/be/core-v3.tar.gz
ARM: set --be8 when linking modulesbaserock/311/be/core-v3
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>
-rw-r--r--arch/arm/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 1ba358ba16b8..70bc19e2274f 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