This patch cures a linker segfault, and "FAIL: Build pr22263-1".
PR 24596
* elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
allocated in alpha_dynamic_entries_for_reloc.
+2019-05-28 Alan Modra <amodra@gmail.com>
+
+ PR 24596
+ * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
+ to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
+ allocated in alpha_dynamic_entries_for_reloc.
+
2019-05-28 Alan Modra <amodra@gmail.com>
PR 24596
BFD_ASSERT (elf_hash_table (info)->tls_sec != NULL);
if (r_type == R_ALPHA_GOTDTPREL)
value -= dtp_base;
- else if (!bfd_link_pic (info))
+ else if (bfd_link_executable (info))
value -= tp_base;
else
{