g++ compiled programs that link with Java HotSpot VM core dump
Alexandre Oliva
oliva@lsd.ic.unicamp.br
Tue Nov 30 23:39:00 GMT 1999
On Nov 29, 1999, Michael Newcomb <michael.p.newcomb@lmco.com> wrote:
> Basically, any program (however simple) that gets linked with
> the Java HotSpot VM (-ljvm) core dumps at initialization.
A program that uses cout from -lstdc++ is hardly a ``simple'' one;
there's a lot of code involved in its initialization, and it happens
that g++ and Sun's C++ refer to the `cout' symbol assuming completely
different structures.
The only way to work around this problem would be to mangle variable
names, just like we mangle functions.
Having C++ hidden within libraries is becoming more and more common,
and, if we intend to be able to link g++-compiled code with such
libraries, I can't see any other way to go.
Can anybody think of any reason for *not* introducing name mangling in
variable names with -fnew-abi?
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them
More information about the Gcc-bugs
mailing list