PR 26484-26488, 26490 UBSAN &h->elf null pointer
authorAlan Modra <amodra@gmail.com>
Wed, 26 Aug 2020 10:13:18 +0000 (19:43 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 26 Aug 2020 13:53:45 +0000 (23:23 +0930)
commit9e51d549d7901be8b999f8dac86c5efd6a7edef2
tree2c5b08c02706d4df63a1f2f01e70a58962937a37
parent00bc5e68b2c02fd2b1daacc37850840498595fb0
PR 26484-26488, 26490 UBSAN &h->elf null pointer

PR 26484
PR 26485
PR 26486
PR 26487
PR 26488
PR 26490
* elf64-ppc.c (is_tls_get_addr): Avoid UB &h->elf when h is NULL.
(ppc64_elf_tls_setup): Likewise.
(branch_reloc_hash_match): Likewise.
(build_plt_stub): Likewise.
(ppc64_elf_relocate_section): Likewise.
bfd/ChangeLog
bfd/elf64-ppc.c