From 5e7598e29f877bc837fbc458f1a989ea7f4767a9 Mon Sep 17 00:00:00 2001 From: Gary King Date: Tue, 22 Dec 2009 17:28:19 -0800 Subject: ARM: fix kernel module relocation a break was accidentally deleted for R_ARM_MOVT_ABS and R_ARM_MOVW_ABS_NC case statements, during the tree merge, causing the relocation for these sections to be wrong Change-Id: I95740d10ecba881376110037b4f88404bacbd4ab --- arch/arm/kernel/module.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/arm/kernel/module.c') diff --git a/arch/arm/kernel/module.c b/arch/arm/kernel/module.c index 1593a0c7c82e..0a4dbecac883 100644 --- a/arch/arm/kernel/module.c +++ b/arch/arm/kernel/module.c @@ -169,6 +169,8 @@ apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex, *(u32 *)loc &= 0xfff0f000; *(u32 *)loc |= ((offset & 0xf000) << 4) | (offset & 0x0fff); + break; + case R_ARM_PREL31: offset = *(u32 *)loc + sym->st_value - loc; *(u32 *)loc = offset & 0x7fffffff; -- cgit v1.2.3