Start mass upgrade
[dragora.git] / patches / binutils / 2.35 / binutils-strip-merge.patch
blob24536857aa64e5f08307996d1167ba1ba13087cf
1 --- binutils.orig/binutils/objcopy.c 2020-10-06 14:53:19.264943750 +0100
2 +++ binutils-2.35.1/binutils/objcopy.c 2020-10-06 14:53:47.002761889 +0100
3 @@ -3313,14 +3313,12 @@ copy_object (bfd *ibfd, bfd *obfd, const
4 /* It is likely that output sections are in the same order
5 as the input sections, but do not assume that this is
6 the case. */
7 - if (strcmp (bfd_section_name (merged->sec),
8 - bfd_section_name (osec)) != 0)
9 + if (merged->sec->output_section != osec)
11 for (merged = merged_note_sections;
12 merged != NULL;
13 merged = merged->next)
14 - if (strcmp (bfd_section_name (merged->sec),
15 - bfd_section_name (osec)) == 0)
16 + if (merged->sec->output_section == osec)
17 break;
19 if (merged == NULL)