diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-04-29 19:09:51 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-04-29 19:09:51 +0000 |
commit | e3361fc35c60fc3a09e16858ea85db30371123db (patch) | |
tree | 09dce8e25b72135d37f52ce78acad69ae6f44cdc /bfd | |
parent | 932315388d8e8798ddb81942816af16da40d6839 (diff) | |
download | gdb-e3361fc35c60fc3a09e16858ea85db30371123db.zip gdb-e3361fc35c60fc3a09e16858ea85db30371123db.tar.gz gdb-e3361fc35c60fc3a09e16858ea85db30371123db.tar.bz2 |
* 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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/cf-m68klynx.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 860241f..f58e599 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 5174a2b..25c4ce7 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; \ } |