summaryrefslogtreecommitdiff
path: root/bfd/coff-z80.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2005-12-27 03:06:27 +0000
committerAlan Modra <amodra@bigpond.net.au>2005-12-27 03:06:27 +0000
commit35715cdaed40b3ed76afe3c342ff4e2bc2db3443 (patch)
tree16048b6a71e84e8ae52979a7dffdb6b1756d7414 /bfd/coff-z80.c
parentd55d341605774531627b02fbc38b7d4227105f6e (diff)
downloadgdb-35715cdaed40b3ed76afe3c342ff4e2bc2db3443.tar.gz
* coff-h8300.c (h8300_reloc16_extra_cases): Use input section
"output_offset" instead of link order "offset". * coff-h8500.c (extra_case): Likewise. * coff-w65.c (w65_reloc16_extra_cases): Likewise. * coff-z80.c (extra_case): Likewise. * coff-z8k.c (extra_case): Likewise. * linker.c (default_indirect_link_order): Likewise, "size" too. * ecoff.c (ecoff_indirect_link_order): Likewise.
Diffstat (limited to 'bfd/coff-z80.c')
-rw-r--r--bfd/coff-z80.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/coff-z80.c b/bfd/coff-z80.c
index fe401d77b86..f39413f6e9c 100644
--- a/bfd/coff-z80.c
+++ b/bfd/coff-z80.c
@@ -200,8 +200,8 @@ extra_case (bfd *in_abfd,
{
bfd_vma dst = bfd_coff_reloc16_get_value (reloc, link_info,
input_section);
- bfd_vma dot = (link_order->offset
- + *dst_ptr
+ bfd_vma dot = (*dst_ptr
+ + input_section->output_offset
+ input_section->output_section->vma);
int gap = dst - dot - 1; /* -1, Since the offset is relative
to the value of PC after reading