[Bug ld/15167] ld merges gnu_unique def and normal ref into normal symbol

2013-02-22 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15167

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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #3 from H.J. Lu hjl.tools at gmail dot com 2013-02-22 16:25:58 
UTC ---
Fixed.

-- 
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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/15167] ld merges gnu_unique def and normal ref into normal symbol

2013-02-21 Thread sbergman at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15167

Stephan Bergmann sbergman at redhat dot com changed:

   What|Removed |Added

 CC||sbergman at redhat dot com

-- 
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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/15167] ld merges gnu_unique def and normal ref into normal symbol

2013-02-21 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15167

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

   What|Removed |Added

 CC||hjl.tools at gmail dot com

--- Comment #1 from H.J. Lu hjl.tools at gmail dot com 2013-02-21 19:12:37 
UTC ---
[hjl@gnu-6 pr15167]$ cat unique_shared1.s
.type b, %gnu_unique_object
b:.long 0
.size b, .-b
[hjl@gnu-6 pr15167]$ cat unique_shared2.s
.data
.dc.ab
[hjl@gnu-6 pr15167]$ make
as   -o unique_shared1.o unique_shared1.s
as   -o unique_shared2.o unique_shared2.s
./ld -shared -o unique_shared.so unique_shared1.o unique_shared2.o
readelf -s unique_shared.so | grep UNIQ
make: *** [all] Error 1
[hjl@gnu-6 pr15167]$

-- 
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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/15167] ld merges gnu_unique def and normal ref into normal symbol

2013-02-21 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=15167

--- Comment #2 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2013-02-22 01:20:55 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:h...@sourceware.org2013-02-22 01:20:48

Modified files:
ld/testsuite   : ChangeLog 
ld/testsuite/ld-unique: unique.exp 
bfd: ChangeLog elf64-ia64-vms.c elflink.c 

Log message:
Set unique_global only for definition

bfd/

PR ld/15167
* elf64-ia64-vms.c (elf64_vms_link_add_object_symbols): Set
unique_global only for definition.
* elflink.c (_bfd_elf_merge_symbol): Don't set unique_global
here.
(elf_link_add_object_symbols): Set unique_global only
for definition.

ld/testsuite/

PR ld/15167
* ld-unique/unique.exp: Add a test for shared library with
reference.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=srcr1=1.1690r2=1.1691
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-unique/unique.exp.diff?cvsroot=srcr1=1.3r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=srcr1=1.5980r2=1.5981
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf64-ia64-vms.c.diff?cvsroot=srcr1=1.7r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elflink.c.diff?cvsroot=srcr1=1.471r2=1.472

-- 
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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils