diff options
author | Daniel Jacobowitz <drow@false.org> | 2005-12-14 23:04:22 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-12-14 23:04:22 +0100 |
commit | c2e2611425a956d25d2948c5d95d3848c4db1257 (patch) | |
tree | 54f6e333ff805a0a0eb63299f0adaa4d11544ab5 /arch/arm/kernel/module.c | |
parent | [ARM] 3201/1: PXA27x: Prevent hangup during resume due to inadvertedly enabli... (diff) | |
download | linux-c2e2611425a956d25d2948c5d95d3848c4db1257.tar.xz linux-c2e2611425a956d25d2948c5d95d3848c4db1257.zip |
[ARM] 3205/1: Handle new EABI relocations when loading kernel modules.
Patch from Daniel Jacobowitz
Handle new EABI relocations when loading kernel modules. This is
necessary for CONFIG_AEABI kernels, and also for some broken
(since fixed) old ABI toolchains.
Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/module.c')
-rw-r--r-- | arch/arm/kernel/module.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/kernel/module.c b/arch/arm/kernel/module.c index 6055e1427ba3..055bf5d28894 100644 --- a/arch/arm/kernel/module.c +++ b/arch/arm/kernel/module.c @@ -101,6 +101,8 @@ apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex, break; case R_ARM_PC24: + case R_ARM_CALL: + case R_ARM_JUMP24: offset = (*(u32 *)loc & 0x00ffffff) << 2; if (offset & 0x02000000) offset -= 0x04000000; |