Set unique_global only for definition
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 22 Feb 2013 01:20:48 +0000 (01:20 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 22 Feb 2013 01:20:48 +0000 (01:20 +0000)
commit35399224a1844ef745704878db6ecc83d350386d
tree947a54ed3d1e69e22b78a17eada5d81225f81019
parent757b8d94056f339ccb81836bdc781bcf6a90dc38
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.
bfd/ChangeLog
bfd/elf64-ia64-vms.c
bfd/elflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-unique/unique.exp