This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Linux ELF g++ weak symbol for destructor
- To: gcc at gcc dot gnu dot org
- Subject: Linux ELF g++ weak symbol for destructor
- From: tmwg-gcc at inxservices dot com
- Date: Thu, 8 Jun 2000 11:58:14 -0700
- Organization: inX Services, Los Angeles, CA, USA
There may be other ways to declare a weak symbol, but I only know one:
extern void w();
extern __typeof ( w ) _._13thedestructor __attribute__ ((weak, alias ("w")))
Unfortunately, the period is not a valid part of the symbol. Version 2.95.2
says:
../edic/TP/TP_weak.c:4: parse error before `.'
Is there another way to declare a destructor as a weak symbol?