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

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