bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/28879] [2.38 Regression] ld.bfd: possibly incorrect "undefined r


From: hjl.tools at gmail dot com
Subject: [Bug ld/28879] [2.38 Regression] ld.bfd: possibly incorrect "undefined reference" errors
Date: Fri, 11 Feb 2022 14:09:14 +0000

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

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
I am testing this:

diff --git a/bfd/elflink.c b/bfd/elflink.c
index 6fa18d92007..a231bdabd28 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -1295,7 +1295,9 @@ _bfd_elf_merge_symbol (bfd *abfd,
     hi->root.non_ir_ref_dynamic = true;
   }

-      if ((oldbfd->flags & BFD_PLUGIN) != 0
+      if (!h->root.non_ir_ref_dynamic
+    && !h->root.non_ir_ref_regular
+    && (oldbfd->flags & BFD_PLUGIN) != 0
     && hi->root.type == bfd_link_hash_indirect)
   {
     /* Change indirect symbol from IR to undefined.  */

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]