]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Don't set unique_global for non-ELF hash link table.
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 25 Aug 2010 20:35:58 +0000 (20:35 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 25 Aug 2010 20:35:58 +0000 (20:35 +0000)
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.

bfd/ChangeLog
bfd/elflink.c

index 31e4b4c186cfa5c150793967a756a940a862fa40..a84338608850f6ba71630038b4c43f4f9551e56a 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/11944
index 2f67c4769affa696b1d59c8ec423b6e6278f958e..28f012c2a20a44211ca561be4b5da60f6a176216 100644 (file)
@@ -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