This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]