Blame SOURCES/binutils-strip-merge.patch

1cefc9
--- binutils.orig/binutils/objcopy.c	2020-10-30 14:21:10.448328799 +0000
1cefc9
+++ binutils-2.30/binutils/objcopy.c	2020-10-30 14:22:08.406136672 +0000
1cefc9
@@ -3257,14 +3257,12 @@ copy_object (bfd *ibfd, bfd *obfd, const
1cefc9
 	  /* It is likely that output sections are in the same order
1cefc9
 	     as the input sections, but do not assume that this is
1cefc9
 	     the case.  */
1cefc9
-	  if (strcmp (bfd_section_name (obfd, merged->sec),
1cefc9
-		      bfd_section_name (obfd, osec)) != 0)
1cefc9
+	  if (merged->sec->output_section != osec)
1cefc9
 	    {
1cefc9
 	      for (merged = merged_note_sections;
1cefc9
 		   merged != NULL;
1cefc9
 		   merged = merged->next)
1cefc9
-		if (strcmp (bfd_section_name (obfd, merged->sec),
1cefc9
-			    bfd_section_name (obfd, osec)) == 0)
1cefc9
+		if (merged->sec->output_section == osec)
1cefc9
 		  break;
1cefc9
 
1cefc9
 	      if (merged == NULL)