1 --- a/arch/arm/include/asm/elf.h
2 +++ b/arch/arm/include/asm/elf.h
3 @@ -50,6 +50,7 @@ typedef struct user_fp elf_fpregset_t;
6 #define R_ARM_JUMP24 29
10 * These are used to set parameters in the core dumps.
11 --- a/arch/arm/kernel/module.c
12 +++ b/arch/arm/kernel/module.c
13 @@ -132,6 +132,15 @@ apply_relocate(Elf32_Shdr *sechdrs, cons
14 *(u32 *)loc |= offset & 0x00ffffff;
18 + /* Preserve Rm and the condition code. Alter
19 + * other bits to re-code instruction as
22 + *(u32 *)loc &= 0xf000000f;
23 + *(u32 *)loc |= 0x01a0f000;
27 printk(KERN_ERR "%s: unknown relocation: %u\n",
28 module->name, ELF32_R_TYPE(rel->r_info));