Blame SOURCES/binutils-strip-merge.patch

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