PATCH: Fix demangler in symbol versioning

H. J. Lu hjl@lucon.org
Sun Dec 7 00:03:00 GMT 2003


On Thu, Dec 04, 2003 at 09:09:39PM -0500, Ian Lance Taylor wrote:
> 
> Sorry.  My referent was unclear.  I meant that I saw how a call to
> cplus_demangle (sym, DMGL_JAVA) was equivalent to a call to
> java_demangle_v3 (sym).
> 

Here is the new patch.


H.J.
----
2003-12-06  H.J. Lu  <hongjiu.lu@intel.com>

	* ldlang.c (lang_vers_match): Pass "DMGL_PARAMS | DMGL_ANSI" to
	cplus_demangle.

--- ld/ldlang.c.dem	2003-12-05 08:40:20.000000000 -0800
+++ ld/ldlang.c	2003-12-06 16:01:36.000000000 -0800
@@ -4996,7 +4996,7 @@ lang_vers_match (struct bfd_elf_version_
 
   if (head->mask & BFD_ELF_VERSION_CXX_TYPE)
     {
-      cxx_sym = cplus_demangle (sym, /* DMGL_NO_TPARAMS */ 0);
+      cxx_sym = cplus_demangle (sym, DMGL_PARAMS | DMGL_ANSI);
       if (!cxx_sym)
 	cxx_sym = sym;
     }



More information about the Binutils mailing list