bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/14272] gold links, but bfd fails with: hidden symbol `.LTHUNK116


From: hjl.tools at gmail dot com
Subject: [Bug ld/14272] gold links, but bfd fails with: hidden symbol `.LTHUNK116.32732' isn't defined
Date: Thu, 01 Nov 2012 23:03:46 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=14272

--- Comment #13 from H.J. Lu <hjl.tools at gmail dot com> 2012-11-01 23:03:46 
UTC ---
(In reply to comment #12)
> Should ld really be covering up this gcc bug?

I think this is a real linker bug since input is correct,
even if not optimized.  My current code is:

     /* If a plugin symbol is referenced from a non-IR file, mark
         the symbol as undefined, except for symbol for linker
         created section.  */
      if (h->root.non_ir_ref
          && (h->root.type == bfd_link_hash_defined
              || h->root.type == bfd_link_hash_defweak)
          && (h->root.u.def.section->flags & SEC_LINKER_CREATED) == 0
          && h->root.u.def.section->owner != NULL
          && (h->root.u.def.section->owner->flags & BFD_PLUGIN) != 0)
        {
          h->root.type = bfd_link_hash_undefined;
          h->root.u.undef.abfd = h->root.u.def.section->owner;
        }

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]