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