bfin reloc offset checks
authorAlan Modra <amodra@gmail.com>
Wed, 8 Jun 2022 09:04:15 +0000 (18:34 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 8 Jun 2022 12:03:00 +0000 (21:33 +0930)
commit5d2834cc7e943014cff0cef6a2a25972eb85d84a
tree8cc050d4526bd103e976984188802d9193a6bbcd
parent5d0feb989ce5f9de16b422693136103d1d7b79ac
bfin reloc offset checks

These all ought to use bfd_reloc_offset_in_range.  In particular, replace
the check using howto->size + 1u.

* elf32-bfin.c (bfin_pcrel24_reloc): Use bfd_reloc_offset_in_range.
(bfin_imm16_reloc, bfin_byte4_reloc, bfin_bfd_reloc),
(bfin_final_link_relocate): Likewise.
bfd/elf32-bfin.c