Blame SOURCES/binutils-strip-merge.patch

2e9b04
--- binutils.orig/binutils/objcopy.c	2020-10-06 14:53:19.264943750 +0100
2e9b04
+++ binutils-2.35.1/binutils/objcopy.c	2020-10-06 14:53:47.002761889 +0100
2e9b04
@@ -3313,14 +3313,12 @@ copy_object (bfd *ibfd, bfd *obfd, const
2e9b04
 	  /* It is likely that output sections are in the same order
2e9b04
 	     as the input sections, but do not assume that this is
2e9b04
 	     the case.  */
2e9b04
-	  if (strcmp (bfd_section_name (merged->sec),
2e9b04
-		      bfd_section_name (osec)) != 0)
2e9b04
+	  if (merged->sec->output_section != osec)
2e9b04
 	    {
2e9b04
 	      for (merged = merged_note_sections;
2e9b04
 		   merged != NULL;
2e9b04
 		   merged = merged->next)
2e9b04
-		if (strcmp (bfd_section_name (merged->sec),
2e9b04
-			    bfd_section_name (osec)) == 0)
2e9b04
+		if (merged->sec->output_section == osec)
2e9b04
 		  break;
2e9b04
 
2e9b04
 	      if (merged == NULL)