From 0cc613a63b9acae2c7eb7c323c72f0e784591452 Mon Sep 17 00:00:00 2001 From: nickc Date: Fri, 3 Aug 2001 11:14:42 +0000 Subject: [PATCH] Include offset of reloc from start of section when computing value for R_ARM_REL32 reloc. --- bfd/ChangeLog | 6 ++++++ bfd/elf32-arm.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e7c5c4cb2b..4408a8c289 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2001-08-03 Ben Harris + + * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of + reloc from start of section when computing value for R_ARM_REL32 + reloc. + 2001-08-03 Alan Modra From H.J. Lu diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h index 6fb163389a..f8f94d66b8 100644 --- a/bfd/elf32-arm.h +++ b/bfd/elf32-arm.h @@ -1295,7 +1295,7 @@ elf32_arm_final_link_relocate (howto, input_bfd, output_bfd, case R_ARM_REL32: value -= (input_section->output_section->vma - + input_section->output_offset); + + input_section->output_offset + rel->r_offset); value += addend; break; } -- 2.11.0