https://sourceware.org/bugzilla/show_bug.cgi?id=20513

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |hjl.tools at gmail dot 
com
   Target Milestone|---                         |2.28

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
This works:

diff --git a/ld/ldmain.c b/ld/ldmain.c
index e7a8dff..294c5b9 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -959,6 +959,11 @@ multiple_definition (struct bfd_link_info *info,
     && bfd_is_abs_section (nsec->output_section)))
     return;

+  /* Ignore a redefinition from excluded section.  */
+  if ((osec->flags & SEC_EXCLUDE) != 0
+      || (nsec->flags & SEC_EXCLUDE) != 0)
+    return;
+
   name = h->root.string;
   if (nbfd == NULL)
     {

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to