Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jul 2009 20:35:47 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r195897 - projects/ppc64/contrib/binutils/bfd
Message-ID:  <200907262035.n6QKZliu079650@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907262035.n6QKZliu079650>