PR 26416
	* elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Correct "dynamic".
This commit is contained in:
Alan Modra
2020-08-27 21:54:16 +09:30
parent 5e9b84f7a2
commit c415c83bd9
2 changed files with 7 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2020-08-27 Alan Modra <amodra@gmail.com>
PR 26416
* elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Correct "dynamic".
2020-08-26 Nick Clifton <nickc@redhat.com>
PR 26433

View File

@@ -3464,9 +3464,8 @@ elf64_alpha_relax_tls_get_addr (struct alpha_relax_info *info, bfd_vma symval,
bfd_boolean dynamic, use_gottprel;
unsigned long new_symndx;
if (info->h == NULL)
return TRUE; /* FIXME: Should this be return FALSE ? */
dynamic = alpha_elf_dynamic_symbol_p (&info->h->root, info->link_info);
dynamic = (info->h != NULL
&& alpha_elf_dynamic_symbol_p (&info->h->root, info->link_info));
/* If a TLS symbol is accessed using IE at least once, there is no point
to use dynamic model for it. */