Date: Sat, 20 Aug 2016 02:21:45 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r304518 - stable/9/contrib/binutils/bfd Message-ID: <201608200221.u7K2Lj6q021411@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Sat Aug 20 02:21:45 2016 New Revision: 304518 URL: https://svnweb.freebsd.org/changeset/base/304518 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/9/contrib/binutils/bfd/elfxx-mips.c Directory Properties: stable/9/contrib/binutils/ (props changed) Modified: stable/9/contrib/binutils/bfd/elfxx-mips.c ============================================================================== --- stable/9/contrib/binutils/bfd/elfxx-mips.c Sat Aug 20 02:18:44 2016 (r304517) +++ stable/9/contrib/binutils/bfd/elfxx-mips.c Sat Aug 20 02:21:45 2016 (r304518) @@ -4797,7 +4797,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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608200221.u7K2Lj6q021411>