summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-01-30 18:29:28 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2017-02-28 11:06:15 +0000
commit050d18d1c65113b4558d86d53465ebe1d04910fb (patch)
tree3838ef2e90645c428ba3d35bb989f1d18f3eff61 /arch/arm/mach-at91
parentad475117d2015781789364d599b85c67254680a1 (diff)
downloadlinux-050d18d1c65113b4558d86d53465ebe1d04910fb.tar.bz2
ARM: 8650/1: module: handle negative R_ARM_PREL31 addends correctly
According to the spec 'ELF for the ARM Architecture' (IHI 0044E), addends for R_ARM_PREL31 relocations are 31-bit signed quantities, so we need to sign extend the value to 32 bits before it can be used as an offset in the calculation of the relocated value. We have not been bitten by this because these relocations are usually emitted against the start of a section, which means the addends never assume negative values in practice. But it is a bug nonetheless, so fix it. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91')
0 files changed, 0 insertions, 0 deletions