From e3361fc35c60fc3a09e16858ea85db30371123db Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 29 Apr 1994 19:09:51 +0000 Subject: [PATCH] * cf-m68klynx.c (CALC_ADDEND): Check for PC relative relocs by enumerating them, since the reloc type can not serve as an index into the m68k COFF howto_table. --- bfd/ChangeLog | 6 ++++++ bfd/cf-m68klynx.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 860241f6ea..f58e599fcd 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +Fri Apr 29 15:08:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + * cf-m68klynx.c (CALC_ADDEND): Check for PC relative relocs by + enumerating them, since the reloc type can not serve as an index + into the m68k COFF howto_table. + Fri Apr 29 09:42:39 1994 Steve Chamberlain (sac@cygnus.com) * config.bfd (*-go32): Changed to coff. diff --git a/bfd/cf-m68klynx.c b/bfd/cf-m68klynx.c index 5174a2b13e..25c4ce7149 100644 --- a/bfd/cf-m68klynx.c +++ b/bfd/cf-m68klynx.c @@ -163,7 +163,9 @@ _bfd_m68klynx_special_fn (abfd, reloc_entry, symbol, data, input_section, output cache_ptr->addend = - (ptr->section->vma + ptr->value); \ else \ cache_ptr->addend = 0; \ - if (ptr && _bfd_m68klynx_howto_table[reloc.r_type].pc_relative) \ + if (ptr && (reloc.r_type == R_PCRBYTE \ + || reloc.r_type == R_PCRWORD \ + || reloc.r_type == R_PCRLONG)) \ cache_ptr->addend += asect->vma; \ }