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

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