diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a6a4c646b61..4be12b80227 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2017-02-16 Alan Modra + + PR 21132 + * elf32-hppa.c (allocate_plt_static): Allocate space for relocs + if pic. + 2017-02-16 Jiong Wang * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED. diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c index de14468a27e..e64ea9aff98 100644 --- a/bfd/elf32-hppa.c +++ b/bfd/elf32-hppa.c @@ -1976,6 +1976,8 @@ allocate_plt_static (struct elf_link_hash_entry *eh, void *inf) sec = htab->etab.splt; eh->plt.offset = sec->size; sec->size += PLT_ENTRY_SIZE; + if (bfd_link_pic (info)) + htab->etab.srelplt->size += sizeof (Elf32_External_Rela); } else {