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/cf-m68klynx.c | |
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/cf-m68klynx.c')
-rw-r--r-- | bfd/cf-m68klynx.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; \ } |