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

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