svn commit: r304517 - stable/10/contrib/binutils/bfd

Pedro F. Giffuni pfg at FreeBSD.org
Sat Aug 20 02:18:45 UTC 2016


Author: pfg
Date: Sat Aug 20 02:18:44 2016
New Revision: 304517
URL: https://svnweb.freebsd.org/changeset/base/304517

Log:
  MFC r303147
  binutils: fix "Bad value" error in bfd for MIPS when using -Bsymbolic.
  
  From OpenBSD's log:
  
  Inspired by https://sourceware.org/ml/binutils/2010-08/msg00333.html,
  but expressed differently so there are no GPLv3 issues.
  
  Obtained from:	OpenBSD (CVS rev. 1.7)

Modified:
  stable/10/contrib/binutils/bfd/elfxx-mips.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/binutils/bfd/elfxx-mips.c
==============================================================================
--- stable/10/contrib/binutils/bfd/elfxx-mips.c	Sat Aug 20 02:14:14 2016	(r304516)
+++ stable/10/contrib/binutils/bfd/elfxx-mips.c	Sat Aug 20 02:18:44 2016	(r304517)
@@ -4801,7 +4801,7 @@ mips_elf_create_dynamic_relocation (bfd 
   /* We must now calculate the dynamic symbol table index to use
      in the relocation.  */
   if (h != NULL
-      && (!h->root.def_regular
+      && (sec == NULL || !h->root.def_regular
 	  || (info->shared && !info->symbolic && !h->root.forced_local)))
     {
       indx = h->root.dynindx;


More information about the svn-src-all mailing list