]> git.baikalelectronics.ru Git - kernel.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)
commit6ca47cb2081ee6e4eca6399fa7f51adb6f4cd4d0
treeed90edbd01863440d57eec206ced1b4cfadcbc40
parent487a912c2b0374c5d0cbe158c7673f701d4ae92b
[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