[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.
- [Bug ld/15107] New: Linking against GNU_UNIQUE symbol creates GNU_UNIQUE symbol without selecting GNU ABI, fweimer at redhat dot com, 2013/02/06
- [Bug ld/15107] Linking against GNU_UNIQUE symbol creates GNU_UNIQUE symbol without selecting GNU ABI, fweimer at redhat dot com, 2013/02/06
- [Bug ld/15107] Linking against GNU_UNIQUE symbol creates GNU_UNIQUE symbol without selecting GNU ABI, hjl.tools at gmail dot com, 2013/02/06
- [Bug ld/15107] Linking against GNU_UNIQUE symbol creates GNU_UNIQUE symbol without selecting GNU ABI,
hjl.tools at gmail dot com <=
- [Bug ld/15107] Linking against GNU_UNIQUE symbol creates GNU_UNIQUE symbol without selecting GNU ABI, fweimer at redhat dot com, 2013/02/06
- [Bug ld/15107] Linking against GNU_UNIQUE symbol creates GNU_UNIQUE symbol without selecting GNU ABI, hjl.tools at gmail dot com, 2013/02/06
- [Bug ld/15107] Reference to GNU_UNIQUE symbol shouldn't create GNU_UNIQUE symbol, hjl.tools at gmail dot com, 2013/02/07
- [Bug ld/15107] Reference to GNU_UNIQUE symbol shouldn't create GNU_UNIQUE symbol, cvs-commit at gcc dot gnu.org, 2013/02/07
- [Bug ld/15107] Reference to GNU_UNIQUE symbol shouldn't create GNU_UNIQUE symbol, hjl.tools at gmail dot com, 2013/02/08