summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/bfd/elfxx-mips.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/binutils/bfd/elfxx-mips.c')
-rw-r--r--contrib/binutils/bfd/elfxx-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/binutils/bfd/elfxx-mips.c b/contrib/binutils/bfd/elfxx-mips.c
index 8f4b05d..1a49b0c 100644
--- a/contrib/binutils/bfd/elfxx-mips.c
+++ b/contrib/binutils/bfd/elfxx-mips.c
@@ -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;
OpenPOWER on IntegriCloud