Set STB_GNU_UNIQUE only if symbol is defined in regular object
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 8 Feb 2013 01:33:01 +0000 (01:33 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 8 Feb 2013 01:33:01 +0000 (01:33 +0000)
commit02acbe2250b647ae693a88fa30056f80aee514d9
tree264575e9da3e20407f3187303431aa0e733c2749
parentaaa42e10ef1e438542a4bf24bd945d11a6059bb2
Set STB_GNU_UNIQUE only if symbol is defined in regular object

bfd/

PR ld/15107
* elflink.c (elf_link_output_extsym): Set STB_GNU_UNIQUE only if
symbol is defined in regular object.

ld/testsuite/

PR ld/15107
* ld-unique/unique_empty.s: Add reference to "b".
bfd/ChangeLog
bfd/elflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-unique/unique_empty.s