Blame SOURCES/binutils-multiple-relocs-for-same-section.patch

c27370
--- binutils.orig/bfd/elf.c	2019-09-10 10:57:33.391081672 +0100
c27370
+++ binutils-2.27/bfd/elf.c	2019-09-10 10:59:55.355010766 +0100
c27370
@@ -2324,9 +2324,18 @@ bfd_section_from_shdr (bfd *abfd, unsign
c27370
 	else
c27370
 	  p_hdr = &esdt->rel.hdr;
c27370
 
c27370
-	/* PR 17512: file: 0b4f81b7.  */
c27370
+	/* PR 17512: file: 0b4f81b7.
c27370
+	   Also see PR 24456, for a file which deliberately has two reloc
c27370
+	   sections.  */
c27370
 	if (*p_hdr != NULL)
c27370
-	  goto fail;
c27370
+	  {
c27370
+	    _bfd_error_handler
c27370
+	      /* xgettext:c-format */
c27370
+	      (_("%B: warning: multiple relocation sections for section %A \
c27370
+found - ignoring all but the first"),
c27370
+	       abfd, target_sect);
c27370
+	    goto success;
c27370
+	  }
c27370
 	hdr2 = (Elf_Internal_Shdr *) bfd_alloc (abfd, sizeof (*hdr2));
c27370
 	if (hdr2 == NULL)
c27370
 	  goto fail;