This is the mail archive of the
mailing list for the GCC project.
GLOBAL constructor symbol names for static vars are bogus!
- To: egcs-bugs at cygnus dot com
- Subject: GLOBAL constructor symbol names for static vars are bogus!
- From: "Brad M. Garcia" <bgarcia at fore dot com>
- Date: Wed, 11 Mar 1998 09:50:56 -0500 (EST)
When a file contains file-scope variables (defined static outside
of any functions), the name of the constructors for these variables
is based on the name of the file itself.
However, most file names contain periods (ex - "foo.cc"). If I want
to call one of these constructors myself (which I need to do in
VxWorks, for example), gcc chokes on the name of the function because
it contains a period.
Can the names for these global constructors be "mangled" differently,
or is there a way to get gcc to recognize the symbol in it's entirety,
even though it contains periods?
___/ __ / __ / ___/ "Being the Linux of digital media
__/ / / / _/ __/ would be a very good life."
_/ ____/ _/ _| ____/ - Jean-Louis Gassee, CEO of Be, Inc.