* 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.
This commit is contained in:
parent
932315388d
commit
e3361fc35c
|
@ -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.
|
||||
|
|
|
@ -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; \
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue