aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-08-03 11:14:42 +0000
committerNick Clifton <nickc@redhat.com>2001-08-03 11:14:42 +0000
commit62efb34674db16981c9f9e04ddc08964cf8fe30f (patch)
tree9cf6cee4424b7ca2e808a936c0e28da99cbc3747 /bfd
parent8e1d4bbbc0d40e33df07d13080aa984902bf4ef2 (diff)
downloadgdb-62efb34674db16981c9f9e04ddc08964cf8fe30f.zip
gdb-62efb34674db16981c9f9e04ddc08964cf8fe30f.tar.gz
gdb-62efb34674db16981c9f9e04ddc08964cf8fe30f.tar.bz2
Include offset of reloc from start of section when computing value for
R_ARM_REL32 reloc.
Diffstat (limited to 'bfd')
-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 e7c5c4c..4408a8c 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-08-03 Alan Modra <amodra@bigpond.net.au>
From H.J. Lu <hjl@gnu.org>
diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h
index 6fb1633..f8f94d6 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;
}