aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf64-ppc.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 607f37c..7273718 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2019-10-07 Alan Modra <amodra@gmail.com>
+ * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Do allocate
+ space for local got non-tls relocs when PIE.
+
+2019-10-07 Alan Modra <amodra@gmail.com>
+
* elflink.c (elf_fixup_link_order): Don't attempt to find
an elf_section for linker created bfd sections.
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 842fc40..32ed81d 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -9814,7 +9814,9 @@ ppc64_elf_size_dynamic_sections (bfd *output_bfd,
htab->elf.irelplt->size += rel_size;
htab->got_reli_size += rel_size;
}
- else if (bfd_link_dll (info))
+ else if (bfd_link_pic (info)
+ && !(ent->tls_type != 0
+ && bfd_link_executable (info)))
{
asection *srel = ppc64_elf_tdata (ibfd)->relgot;
srel->size += rel_size;