PR26476, PR26477 UBSAN: elfxx-mips.c:2695,5370 cannot be represented
authorAlan Modra <amodra@gmail.com>
Mon, 31 Aug 2020 02:08:05 +0000 (11:38 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 31 Aug 2020 10:58:10 +0000 (20:28 +0930)
commit227d539b17c60a74c583dc66a2c0467243eb4bb2
tree425307d891720f74dab29a3c2c2ce4fe41f552e3
parent1a211fc7d87dc92c2c91d24d0424d8f0485587f9
PR26476, PR26477 UBSAN: elfxx-mips.c:2695,5370 cannot be represented

PR 26476
PR 26477
* elfxx-mips.c (CRINFO_CTYPE, CRINFO_RTYPE, CRINFO_DIST2TO),
(CRINFO_RELVADDR): Make unsigned.
(mips_elf_nullify_got_load): Use unsigned constant when shifting
into sign bit.
bfd/ChangeLog
bfd/elfxx-mips.c