Linux ELF g++ weak symbol for destructor
tmwg-gcc@inxservices.com
tmwg-gcc@inxservices.com
Thu Jun 8 11:59:00 GMT 2000
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?
More information about the Gcc
mailing list