diff options
author | 2015-11-26 20:03:24 +0000 | |
---|---|---|
committer | 2015-11-26 20:03:24 +0000 | |
commit | 88856182a1ac19f79600490d751c0662d5a86110 (patch) | |
tree | 0cbe84fc929dfbe972968a9c91cac3c06d8bf152 | |
parent | passwd no longer has an -l flag; ok deraadt (diff) | |
download | wireguard-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.c | 2 |
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; |