summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2015-11-26 20:03:25 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2015-11-26 20:03:25 +0000
commit056fffbf1f75b7296492e743c3948471252a6af5 (patch)
tree14856bf97c9adb19658522816ddcc6c75f357613
parent6fd61c1baf795c7a9781eaa0b95933f75b584d22 (diff)
Fix "Bad value" error seen when building Mesa 11.0.6 which uses -Bsymbolic.
Inspired by https://sourceware.org/ml/binutils/2010-08/msg00333.html, but expressed differently so there are no GPLv3 issues.
-rw-r--r--gnu/usr.bin/binutils-2.17/bfd/elfxx-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils-2.17/bfd/elfxx-mips.c b/gnu/usr.bin/binutils-2.17/bfd/elfxx-mips.c
index 0d4a623a44d..b28a010a847 100644
--- a/gnu/usr.bin/binutils-2.17/bfd/elfxx-mips.c
+++ b/gnu/usr.bin/binutils-2.17/bfd/elfxx-mips.c
@@ -4768,7 +4768,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;