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

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