]> git.karo-electronics.de Git - linux-beck.git/commit
[ARM] 5428/1: Module relocation update for R_ARM_V4BX
authorDaniel Silverstone <dsilvers@simtec.co.uk>
Fri, 20 Mar 2009 10:11:43 +0000 (11:11 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 21 Mar 2009 11:22:33 +0000 (11:22 +0000)
commit4731f8b66dd34ebf0e67ca6ba9162b0e509bec06
treeed90edbd01863440d57eec206ced1b4cfadcbc40
parent65c24491b4fef017c64e39ec64384fde5e05e0a0
[ARM] 5428/1: Module relocation update for R_ARM_V4BX

It would seem when building kernel modules with modern binutils
(required by modern GCC) for ARM v4T targets (specifically observed
with the Samsung 24xx SoC which is an 920T) R_ARM_V4BX relocations
are emitted for function epilogues.

This manifests at module load time with an "unknown relocation: 40"
error message.

The following patch adds the R_ARM_V4BX relocation to the ARM kernel
module loader. The relocation operation is taken from that within the
binutils bfd library.

Signed-off-by: Simtec Linux Team <linux@simtec.co.uk>
Signed-off-by: Vincent Sanders <vince@simtec.co.uk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/elf.h
arch/arm/kernel/module.c