bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

exporting c++ special symbols


From: Miroslaw Dobrzanski-Neumann
Subject: exporting c++ special symbols
Date: Mon, 7 Oct 2002 17:28:37 +0200
User-agent: Mutt/1.3.16i

Hi,

When using -export-symbols-regex option libtool filters out following symbols
before they have a chance to pass use defined filter

* for gcc 2.x
  symbols that start with '_.' which are c++ destructors
  $ c++filt _._2xx
  xx::~xx(void)

* for gcc 3.x
  symbols that are flagged vith 'V' which are c++ type infos and virtual tables
  $ nm xx.o
    00000020 T _ZN2xxC1Ev
    00000000 T _ZN2xxC2Ev
    000000c0 T _ZN2xxD0Ev
    00000080 T _ZN2xxD1Ev
    00000040 T _ZN2xxD2Ev
    00000000 V _ZTI2xx
    00000000 V _ZTS2xx
    00000000 V _ZTV2xx
             U _ZTVN10__cxxabiv117__class_type_infoE
             U _ZdlPv
  $ nm xx.o | c++filt
    00000020 T xx::xx[in-charge]()
    00000000 T xx::xx[not-in-charge]()
    000000c0 T xx::~xx [in-charge deleting]()
    00000080 T xx::~xx [in-charge]()
    00000040 T xx::~xx [not-in-charge]()
    00000000 V typeinfo for xx
    00000000 V typeinfo name for xx
    00000000 V vtable for xx
             U vtable for __cxxabiv1::__class_type_info
             U operator delete(void*)
    
with this there is not way to export only a given class because either a 
destructor is missing (gcc 2.x) or rtti information is missing (gcc 3.x)

Could you fix this bug?


$ libtool --version
ltmain.sh (GNU libtool) 1.4d (1.1085 2001/12/06 19:34:36)

Copyright 1996, 1997, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Regards
-- 
Miroslaw Dobrzanski-Neumann

MOSAIC SOFTWARE AG
Abteilung Basisentwicklung und Forschung
Tel +49-2225-882-291
Fax +49-2225-882-201
E-mail: address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]