diff options
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf64-ppc.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ba377ab..4ad0127 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2018-01-26 Alan Modra <amodra@gmail.com> + + * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when + .branch_lt changes size. + 2018-01-25 Alan Modra <amodra@gmail.com> PR 22746 diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index b2d288b..5cbb035 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -12702,6 +12702,9 @@ ppc64_elf_size_stubs (struct bfd_link_info *info) stub_sec->flags &= ~SEC_RELOC; } + if (htab->stub_iteration <= STUB_SHRINK_ITER + || htab->brlt->rawsize < htab->brlt->size) + htab->brlt->rawsize = htab->brlt->size; htab->brlt->size = 0; htab->brlt->reloc_count = 0; htab->brlt->flags &= ~SEC_RELOC; @@ -12757,6 +12760,9 @@ ppc64_elf_size_stubs (struct bfd_link_info *info) break; if (group == NULL + && (htab->brlt->rawsize == htab->brlt->size + || (htab->stub_iteration > STUB_SHRINK_ITER + && htab->brlt->rawsize > htab->brlt->size)) && (htab->glink_eh_frame == NULL || htab->glink_eh_frame->rawsize == htab->glink_eh_frame->size)) break; |