From 62efb34674db16981c9f9e04ddc08964cf8fe30f Mon Sep 17 00:00:00 2001 From: Nick Clifton 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 e7c5c4cb2b2..4408a8c2894 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 6fb163389ac..f8f94d66b83 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.30.2