svn commit: r195897 - projects/ppc64/contrib/binutils/bfd

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sun Jul 26 20:35:48 UTC 2009


Author: nwhitehorn
Date: Sun Jul 26 20:35:47 2009
New Revision: 195897
URL: http://svn.freebsd.org/changeset/base/195897

Log:
  Fix a segfault in ld when the PLT is defined but not used. This follows a
  similar change in 2006 made by Alan Modra.

Modified:
  projects/ppc64/contrib/binutils/bfd/elf64-ppc.c

Modified: projects/ppc64/contrib/binutils/bfd/elf64-ppc.c
==============================================================================
--- projects/ppc64/contrib/binutils/bfd/elf64-ppc.c	Sun Jul 26 20:12:06 2009	(r195896)
+++ projects/ppc64/contrib/binutils/bfd/elf64-ppc.c	Sun Jul 26 20:35:47 2009	(r195897)
@@ -7206,7 +7206,7 @@ ppc64_elf_build_stubs (bfd_boolean emit_
 	stub_sec->_cooked_size = 0;
       }
 
-  if (htab->plt != NULL)
+  if (htab->glink != NULL && htab->glink->contents != NULL)
     {
       unsigned int indx;
       bfd_vma plt0;


More information about the svn-src-projects mailing list