* objcopy.c (copy_object): Compare input and output sections by
pointer rather than name.
+2020-10-06 Nick Clifton <nickc@redhat.com>
+
+ * objcopy.c (copy_object): Compare input and output sections by
+ pointer rather than name.
+
2020-10-05 Nick Clifton <nickc@redhat.com>
PR 26698
/* It is likely that output sections are in the same order
as the input sections, but do not assume that this is
the case. */
- if (strcmp (bfd_section_name (merged->sec),
- bfd_section_name (osec)) != 0)
+ if (merged->sec->output_section != osec)
{
for (merged = merged_note_sections;
merged != NULL;
merged = merged->next)
- if (strcmp (bfd_section_name (merged->sec),
- bfd_section_name (osec)) == 0)
+ if (merged->sec->output_section == osec)
break;
if (merged == NULL)