From: Ian Lance Taylor Date: Fri, 29 Apr 1994 19:09:51 +0000 (+0000) Subject: * cf-m68klynx.c (CALC_ADDEND): Check for PC relative relocs by X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3361fc35c60fc3a09e16858ea85db30371123db;p=binutils-gdb.git * 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 860241f6ead..f58e599fcde 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 5174a2b13ed..25c4ce71491 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; \ }