input_bfd, h->root.root.root.string);
ret_val = false;
}
- else if (elf_link_local_undefweak_p (&h->root, info))
+ else if (elf_link_local_undefweak_p (h ? &h->root : NULL, info))
/* NB: The local undefined TLS symbol address isn't usable
since it isn't mapped to any TLS storage. Set it to 0
to avoid relocation overflow. */
value = 0;
else
{
- if (elf_link_local_undefweak_p (&h->root, info))
+ if (elf_link_local_undefweak_p (h ? &h->root : NULL, info))
/* NB: The local undefined TLS symbol address isn't
usable since it isn't mapped to any TLS storage.
Set it to 0 to avoid relocation overflow. */