From 44da2da10b10bc7e70095c3dc8737278c9a65149 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 27 Dec 2005 03:06:27 +0000 Subject: * 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. --- bfd/coff-z8k.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'bfd/coff-z8k.c') diff --git a/bfd/coff-z8k.c b/bfd/coff-z8k.c index d2dc381..8fc2f16 100644 --- a/bfd/coff-z8k.c +++ b/bfd/coff-z8k.c @@ -230,8 +230,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 we're in the odd byte of the word and the pc's been incremented. */ @@ -258,8 +258,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 we're in the odd byte of the word and the pc's been incremented. */ @@ -289,8 +289,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 - 2; @@ -318,8 +318,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 - 2; -- cgit v1.1