Re: PR26656, power10 libstdc++.so segfault in __cxxabiv1::__cxa_throw
authorAlan Modra <amodra@gmail.com>
Mon, 28 Sep 2020 00:00:19 +0000 (09:30 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 28 Sep 2020 00:05:20 +0000 (09:35 +0930)
commit12cf8b93da0ae155643d262235486fde5af72a80
treea2de67951781427b0f1840354f858e5ce52a9e7d
parent5ecafd70201ac84228ed6a394e6fa72c0e08f62f
Re: PR26656, power10 libstdc++.so segfault in __cxxabiv1::__cxa_throw

Some missing NULL checks meant a stub for a local symbol used a stub
looking like the __tls_get_addr_opt stub.

PR 26656
* elf64-ppc.c (ppc_build_one_stub, ppc_size_one_stub): Check for
NULL stub_entry->h before calling is_tls_get_addr.
bfd/ChangeLog
bfd/elf64-ppc.c