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) MFC after: 1 month
This commit is contained in:
parent
f05dbca7c7
commit
717464d821
@ -4801,7 +4801,7 @@ mips_elf_create_dynamic_relocation (bfd *output_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;
|
||||
|
Loading…
Reference in New Issue
Block a user