aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-08-03 11:16:39 +0000
committerNick Clifton <nickc@redhat.com>2001-08-03 11:16:39 +0000
commitc9afe91bebc55e58f8bbe543e72c65f3e11ff67a (patch)
tree0a2286d8d6016beab853bff3989b2fafe89fc746
parentcb45c169ac7a3e1abed10c0dc08ea8603f7e42cf (diff)
downloadgdb-c9afe91bebc55e58f8bbe543e72c65f3e11ff67a.zip
gdb-c9afe91bebc55e58f8bbe543e72c65f3e11ff67a.tar.gz
gdb-c9afe91bebc55e58f8bbe543e72c65f3e11ff67a.tar.bz2
Include offset of reloc from start of section when computing value for
R_ARM_REL32 reloc.
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf32-arm.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e8bc010..1ea2652 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-03 Ben Harris <bjh21@netbsd.org>
+
+ * 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-07-06 Philip Blundell <philb@gnu.org>
* elf32-arm.h (elf32_arm_merge_private_bfd_data): Correct sense of
diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h
index b05a5cc..d628f1d 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;
}