Blame SOURCES/binutils-2.27-ppc-stubs.patch

58725c
--- binutils.orig/bfd/elf64-ppc.c	2017-03-08 13:43:51.185482217 +0000
58725c
+++ binutils-2.27/bfd/elf64-ppc.c	2017-03-08 13:44:28.403034088 +0000
58725c
@@ -12514,7 +12514,10 @@ ppc64_elf_size_stubs (struct bfd_link_in
58725c
 	   stub_sec = stub_sec->next)
58725c
 	if ((stub_sec->flags & SEC_LINKER_CREATED) == 0)
58725c
 	  {
58725c
-	    stub_sec->rawsize = stub_sec->size;
58725c
+           if (htab->stub_iteration <= STUB_SHRINK_ITER
58725c
+               || stub_sec->rawsize < stub_sec->size)
58725c
+             /* Past STUB_SHRINK_ITER, rawsize is the max size seen.  */
58725c
+             stub_sec->rawsize = stub_sec->size;
58725c
 	    stub_sec->size = 0;
58725c
 	    stub_sec->reloc_count = 0;
58725c
 	    stub_sec->flags &= ~SEC_RELOC;