public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PowerPC64 ld segfault with branch in non-executable sections
@ 2016-08-02 14:23 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2016-08-02 14:23 UTC (permalink / raw)
  To: binutils

Applied.

	PR ld/20428
	* elf64-ppc.c (ppc_get_stub_entry): Don't segfault on NULL group.

diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 34d4635..f40b35a 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -4505,6 +4505,8 @@ ppc_get_stub_entry (const asection *input_section,
      more than one stub used to reach say, printf, and we need to
      distinguish between them.  */
   group = htab->sec_info[input_section->id].u.group;
+  if (group == NULL)
+    return NULL;
 
   if (h != NULL && h->u.stub_cache != NULL
       && h->u.stub_cache->h == h

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-02 14:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-02 14:23 PowerPC64 ld segfault with branch in non-executable sections Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).