summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2015-11-26 20:03:24 +0000
committerkettenis <kettenis@openbsd.org>2015-11-26 20:03:24 +0000
commit88856182a1ac19f79600490d751c0662d5a86110 (patch)
tree0cbe84fc929dfbe972968a9c91cac3c06d8bf152
parentpasswd no longer has an -l flag; ok deraadt (diff)
downloadwireguard-openbsd-88856182a1ac19f79600490d751c0662d5a86110.tar.xz
wireguard-openbsd-88856182a1ac19f79600490d751c0662d5a86110.zip
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;