This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: PR 882: Version script doesn't work on executable
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Wed, 27 Apr 2005 10:54:00 -0700
- Subject: PATCH: PR 882: Version script doesn't work on executable
This patch allows version script on executables.
H.J.
----
2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
PR 882
* elflink.c (_bfd_elf_link_assign_sym_version): Allow version
script on executable.
--- bfd/elflink.c.exec 2005-04-27 09:10:38.000000000 -0700
+++ bfd/elflink.c 2005-04-27 10:41:43.000000000 -0700
@@ -1832,7 +1832,6 @@ _bfd_elf_link_assign_sym_version (struct
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);
}
@@ -1962,7 +1961,6 @@ _bfd_elf_link_assign_sym_version (struct
{
h->verinfo.vertree = local_ver;
if (h->dynindx != -1
- && info->shared
&& ! info->export_dynamic)
{
forced_global = FALSE;