ARM: 5428/1: Module relocation update for R_ARM_V4BX
commit4e3278e0e894eb08599dc3b2541f9f3a55ebeebf
authorDaniel Silverstone <dsilvers@simtec.co.uk>
Fri, 20 Mar 2009 10:11:43 +0000 (20 11:11 +0100)
committerChris Wright <chrisw@sous-sol.org>
Thu, 2 Apr 2009 20:55:18 +0000 (2 13:55 -0700)
treee722120d6dd07a8c857ab1d96a5de990021114c5
parent7549374c394bd35a343f3f85f95d93af962be643
ARM: 5428/1: Module relocation update for R_ARM_V4BX

upstream commit: 4731f8b66dd34ebf0e67ca6ba9162b0e509bec06

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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/arm/include/asm/elf.h
arch/arm/kernel/module.c