bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/15107] Linking against GNU_UNIQUE symbol creates GNU_UNIQUE symb


From: hjl.tools at gmail dot com
Subject: [Bug ld/15107] Linking against GNU_UNIQUE symbol creates GNU_UNIQUE symbol without selecting GNU ABI
Date: Wed, 06 Feb 2013 19:28:17 +0000

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |hjl.tools at gmail dot com

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2013-02-06 19:28:17 
UTC ---
Please try this

diff --git a/bfd/elflink.c b/bfd/elflink.c
index d336730..789ae12 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -8868,7 +8868,7 @@ elf_link_output_extsym (struct bfd_hash_entry *bh, void
*data)
       /* Turn off visibility on local symbol.  */
       sym.st_other &= ~ELF_ST_VISIBILITY (-1);
     }
-  else if (h->unique_global)
+  else if (h->unique_global && h->def_regular)
     sym.st_info = ELF_ST_INFO (STB_GNU_UNIQUE, h->type);
   else if (h->root.type == bfd_link_hash_undefweak
      || h->root.type == bfd_link_hash_defweak)

-- 
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]