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

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