[java/c++/rfc] avoid plt references to cni methods

Ian Lance Taylor ian@airs.com
Tue May 24 22:10:00 GMT 2005


Richard Henderson <rth@redhat.com> writes:

> I've somewhat arbitrarily chosen to extend the mangling grammar:
> 
>   <special_name> := HA <encoding>
> 
> where "HA" stands for "hidden alias".  It's not inconcievable that
> such aliases could be useful in other cases.  In any event, it seemed
> safer to inject myself into a logical point in the grammar like this
> than invent my own private prefix/suffix which could just as easily
> conflict with other symbols.

It seems like we need a patch to libiberty/cp-demangle.c to demangle
these names, presumably in the function d_special_name.  At least,
that would be right if the fully mangled name will be _ZHA....  It
could be made conditional on (di->options & DMGL_JAVA) if that seems
appropriate.

Ian



More information about the Java-patches mailing list