This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
versioning hacks, aliasing
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org, rth at redhat dot com
- Date: Wed, 9 Oct 2002 00:08:06 -0500
- Subject: versioning hacks, aliasing
I'd like to clean up src/globals.cc. Mistakenly, these symbols are
being exported.
Ideally, what I'd like to do is transform this goo:
namespace std
{
// Standard "C" locale.
typedef char fake_locale[sizeof(locale)]
__attribute__ ((aligned(__alignof__(locale))));
fake_locale c_locale
}
into even more complicated goo:
namespace __gnu_cxx
{
using namespace std;
// Standard "C" locale.
typedef char fake_locale[sizeof(locale)]
__attribute__ ((aligned(__alignof__(locale))));
fake_locale c_locale __asm__(".symver _ZN9__gnu_cxx8c_localeE,_ZSt8c_locale@GLIBCPP_3.2");
}
Or, something like it that works.
In a nutshell: take the symbol _ZSt8c_locale@GLIBCPP_3.2 and alias
_ZN9__gnu_cxx8c_localeE (non-exported) to it.
??
-benjamin