* coff-sh.c (sh_coff_howtos): Mark R_SH_PCDISP8BY2 and R_SH_PCDISP
authorIan Lance Taylor <ian@airs.com>
Mon, 24 Jul 1995 19:20:15 +0000 (19:20 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 24 Jul 1995 19:20:15 +0000 (19:20 +0000)
commite0981b9b2ee25a71906a5298ac3c4413a18cf215
tree6ccf1ed1d5c348a96516f4aeeec11edd0d035fdc
parenta91c6b08851fab0519eefdccded4580c702d7bba
* coff-sh.c (sh_coff_howtos): Mark R_SH_PCDISP8BY2 and R_SH_PCDISP
as PC relative.  Describe R_SH_IMM16.  Add entries for
R_SH_SWITCH16, R_SH_SWITCH32, R_SH_USES, R_SH_COUNT, and
R_SH_ALIGN.
(SWAP_IN_RELOC_OFFSET): Define.
(SWAP_OUT_RELOC_OFFSET): Define.
(CALC_ADDEND): Define.
(sh_reloc): Change sym_value and addr to type bfd_vma.  Skip reloc
types other than R_SH_IMM32 and R_SH_PCDISP on an external symbol.
(coff_bfd_relax_section): Define.
(coff_bfd_get_relocated_section_contents): Define.
(sh_relax_section): New static function.
(sh_relax_delete_bytes): New static function.
(sh_relocate_section): Handle R_SH_PCDISP on an external symbol.
(sh_coff_get_relocated_section_contents): New static function.
bfd/coff-sh.c