Blame SOURCES/binutils-special-sections-in-groups.patch

8d443f
--- binutils.orig/bfd/elf.c	2018-10-19 11:42:10.107277490 +0100
8d443f
+++ binutils-2.31.1/bfd/elf.c	2018-10-19 11:44:33.607105801 +0100
8d443f
@@ -830,7 +830,13 @@ setup_group (bfd *abfd, Elf_Internal_Shd
8d443f
 	}
8d443f
     }
8d443f
 
8d443f
-  if (elf_group_name (newsect) == NULL)
8d443f
+  if (elf_group_name (newsect) == NULL
8d443f
+      /* OS specific sections might be in a group (eg ARM's ARM_EXIDX section)
8d443f
+	 but they will not have been added to the group because they do not
8d443f
+	 have contents that the ELF code in the BFD library knows how to
8d443f
+	 process.  This is OK though - we rely upon the target backends to
8d443f
+	 handle these sections for us.  */
8d443f
+      && hdr->sh_type < SHT_LOOS)
8d443f
     {
8d443f
       /* xgettext:c-format */
8d443f
       _bfd_error_handler (_("%pB: no group info for section '%pA'"),
8d443f
@@ -936,7 +942,8 @@ _bfd_elf_setup_sections (bfd *abfd)
8d443f
 	  else if (idx->shdr->bfd_section)
8d443f
 	    elf_sec_group (idx->shdr->bfd_section) = shdr->bfd_section;
8d443f
 	  else if (idx->shdr->sh_type != SHT_RELA
8d443f
-		   && idx->shdr->sh_type != SHT_REL)
8d443f
+		   && idx->shdr->sh_type != SHT_REL
8d443f
+		   && idx->shdr->sh_type < SHT_LOOS)
8d443f
 	    {
8d443f
 	      /* There are some unknown sections in the group.  */
8d443f
 	      _bfd_error_handler