PR27631, ubsan: elf32-metag.c:1550:10
authorAlan Modra <amodra@gmail.com>
Wed, 14 Apr 2021 07:56:45 +0000 (17:26 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 14 Apr 2021 08:07:27 +0000 (17:37 +0930)
commit8985b74b7d0f957eda8ec12e88665dab17f00a15
treeb75ebb7c3835d88980b5e45a58c8d3e428ffea3e
parentc9f9a78d00d1a054c013da612949bbd6d1720ed7
PR27631, ubsan: elf32-metag.c:1550:10

PR 27631
* elf32-metag.c (elf_metag_relocate_section): Don't use &hh->elf
when hh might be NULL, test for NULL first.
bfd/ChangeLog
bfd/elf32-metag.c