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

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