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

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