aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1995-06-30 22:53:13 +0000
committerFred Fish <fnf@specifix.com>1995-06-30 22:53:13 +0000
commitd84d840f187bfeaf9a32efa4f267c87a9c008832 (patch)
tree25e53bea8e1bc3df35565c80dbdcbbb2a6a0d757
parente5c5ce23fd35432b4300434a099b0453df787695 (diff)
downloadgdb-d84d840f187bfeaf9a32efa4f267c87a9c008832.zip
gdb-d84d840f187bfeaf9a32efa4f267c87a9c008832.tar.gz
gdb-d84d840f187bfeaf9a32efa4f267c87a9c008832.tar.bz2
* cofflink.c (_bfd_coff_generic_relocate_section):
Remove extra '+'.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/cofflink.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 2c4c511..5101cc5 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jun 30 15:47:37 1995 Fred Fish <fnf@deneb.cygnus.com>
+
+ * cofflink.c (_bfd_coff_generic_relocate_section):
+ Remove extra '+'.
+
Thu Jun 29 17:24:52 1995 Steve Chamberlain <sac@slash.cygnus.com>
* coff-h8300.c (COFF_LONG_FILENAMES): Define.
diff --git a/bfd/cofflink.c b/bfd/cofflink.c
index 1e3d33e..a8ee9b8 100644
--- a/bfd/cofflink.c
+++ b/bfd/cofflink.c
@@ -2471,7 +2471,7 @@ _bfd_coff_generic_relocate_section (output_bfd, info, input_bfd,
/* relocation to a symbol in a section which
isn't absolute - we output the address here
to a file */
- bfd_vma addr = rel->r_vaddr +
+ bfd_vma addr = rel->r_vaddr
+ input_section->output_offset
+ input_section->output_section->vma;
fwrite (&addr, 1,4, info->base_file);