[PATCH v3 6/7] ARM: Remove dummy loads from the original relocation address
Catalin Marinas
catalin.marinas at arm.com
Mon Jun 21 05:13:59 EDT 2010
Reading back the upper and lower values in the R_ARM_THM_CALL and
R_ARM_THM_JUMP24 case was introduced by a previous commit but they are
not needed.
Signed-off-by: Catalin Marinas <catalin.marinas at arm.com>
---
arch/arm/kernel/module.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/arch/arm/kernel/module.c b/arch/arm/kernel/module.c
index ae3c804..aab7fca 100644
--- a/arch/arm/kernel/module.c
+++ b/arch/arm/kernel/module.c
@@ -233,8 +233,6 @@ apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex,
*(u16 *)(loc + 2) = (u16)((lower & 0xd000) |
(j1 << 13) | (j2 << 11) |
((offset >> 1) & 0x07ff));
- upper = *(u16 *)loc;
- lower = *(u16 *)(loc + 2);
break;
case R_ARM_THM_MOVW_ABS_NC:
More information about the linux-arm-kernel
mailing list