aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-08-25 20:35:58 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-08-25 20:35:58 +0000
commitd64284fea754ea7b735f95f6c2e1bfa019575395 (patch)
tree146d642758f296926194231d7c4003c2838d1e4c /bfd/elflink.c
parentcd02d79dc87e7c6eb5a2b8bde46e41370ec79a09 (diff)
downloadgdb-d64284fea754ea7b735f95f6c2e1bfa019575395.zip
gdb-d64284fea754ea7b735f95f6c2e1bfa019575395.tar.gz
gdb-d64284fea754ea7b735f95f6c2e1bfa019575395.tar.bz2
Don't set unique_global for non-ELF hash link table.
2010-08-25 H.J. Lu <hongjiu.lu@intel.com> PR ld/11939 * elflink.c (elf_link_add_object_symbols): Don't set unique_global for non-ELF hash link table.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 2f67c47..28f012c 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -4191,7 +4191,8 @@ error_free_dyn:
h = (struct elf_link_hash_entry *) h->root.u.i.link;
*sym_hash = h;
- h->unique_global = (flags & BSF_GNU_UNIQUE) != 0;
+ if (is_elf_hash_table (htab))
+ h->unique_global = (flags & BSF_GNU_UNIQUE) != 0;
new_weakdef = FALSE;
if (dynamic