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]

Re: [PATCH] automated demangling styles list.


On Wed, Jun 05, 2002 at 03:09:36PM -0700, Ian Lance Taylor wrote:
> "H . J . Lu" <hjl@lucon.org> writes:
> 
> > I have been using a demangling patch in the Linux binutils for years.
> > It does it automatically and shares the same code from libiberty. It
> > also supports ld and gprof. My patch was rejected because it uses
> > dlopen. I am willing to spend time to make dlopen a configure time
> > option.
> 
> There were other problems with the last version I saw: it used #ifdef
> __linux__ unnecessarily, and it introduced a new, undocumented, ABI.
> These problems are correctable if you or somebody wants to sort them
> out.
> 
> On the other hand, as I've said before, there is no earthly reason to
> use dlopen here.  It would be entirely appropriate to invoke a filter
> program which would be provided by the compiler.  That option would
> always work, with fewer ABI issues.
> 
> In fact, that very program already exists: it's the program you get by
> compiling cplus-dem.c with MAIN defined.  So I think that what we
> really need is an option to the linker which tells it which demangling
> program to run.
> 

The dlopen support is just the part of my change. I can remove it.


H.J.


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