diff options
Diffstat (limited to 'bfd/coff-z80.c')
-rw-r--r-- | bfd/coff-z80.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/coff-z80.c b/bfd/coff-z80.c index fe401d7..f39413f 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 |