PR23980, powerpc64 ld segfault

PR 23980
	* elf64-ppc.c (ppc64_elf_hide_symbol): Check hash table type
	before referencing ppc64-only fields of hash entries.
This commit is contained in:
Alan Modra 2018-12-18 08:59:59 +10:30
parent 51b4f73a37
commit 87469ba2d2
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2018-12-18 Alan Modra <amodra@gmail.com>
PR 23980
* elf64-ppc.c (ppc64_elf_hide_symbol): Check hash table type
before referencing ppc64-only fields of hash entries.
2018-12-17 Alan Modra <amodra@gmail.com>
PR 23994

View File

@ -6193,6 +6193,9 @@ ppc64_elf_hide_symbol (struct bfd_link_info *info,
struct ppc_link_hash_entry *eh;
_bfd_elf_link_hash_hide_symbol (info, h, force_local);
if (ppc_hash_table (info) == NULL)
return;
eh = (struct ppc_link_hash_entry *) h;
if (eh->is_func_descriptor)
{