2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 5 May 2005 14:30:04 +0000 (14:30 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 5 May 2005 14:30:04 +0000 (14:30 +0000)
PR 882
* elflink.c (_bfd_elf_link_assign_sym_version): Allow version
script on executable.

bfd/ChangeLog
bfd/elflink.c

index 4faeff8f564e82f79d15e602a8788d9a963c0a56..dadf6be4670c6c29563cf2cb80a0f701956ca9bc 100644 (file)
@@ -1,3 +1,9 @@
+2005-05-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR 882
+       * elflink.c (_bfd_elf_link_assign_sym_version): Allow version
+       script on executable.
+
 2005-05-05  John Levon  <levon@movementarian.org>
 
        * dwarf2.c (read_abbrevs): If bfd_realloc fails, free currently
index 393e155947c6cb238a8a062619f1bc05856ded23..5a65d23f1937f756b5e3e553484d9095007a2948 100644 (file)
@@ -1778,7 +1778,6 @@ _bfd_elf_link_assign_sym_version (struct elf_link_hash_entry *h, void *data)
                  d = (*t->match) (&t->locals, NULL, alc);
                  if (d != NULL
                      && h->dynindx != -1
-                     && info->shared
                      && ! info->export_dynamic)
                    (*bed->elf_backend_hide_symbol) (info, h, TRUE);
                }
@@ -1905,7 +1904,6 @@ _bfd_elf_link_assign_sym_version (struct elf_link_hash_entry *h, void *data)
        {
          h->verinfo.vertree = local_ver;
          if (h->dynindx != -1
-             && info->shared
              && ! info->export_dynamic)
            {
              (*bed->elf_backend_hide_symbol) (info, h, TRUE);