This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

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


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