PR26466 UBSAN: elf32-mep.c:300 left shift of negative value
authorAlan Modra <amodra@gmail.com>
Mon, 31 Aug 2020 01:44:31 +0000 (11:14 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 31 Aug 2020 10:58:10 +0000 (20:28 +0930)
commit1a211fc7d87dc92c2c91d24d0424d8f0485587f9
tree3d7ab2f48076d53b42d1b9ca2ea10f504bad9c86
parent108f6f97bd862e969f898c1347903ae1cf38ead4
PR26466 UBSAN: elf32-mep.c:300 left shift of negative value

PR 26466
* mep-relocs.pl (emit_apply): Handle HI16S adjustment.  Use "u"
variable and rewrite signed overflow check.
* elf32-mep.c: Regenerate.
(mep_final_link_relocate): Delete "s".
bfd/ChangeLog
bfd/elf32-mep.c
bfd/mep-relocs.pl