* Linux ELF g++ weak symbol for destructor
@ 2000-06-08 11:59 tmwg-gcc
2000-06-08 15:22 ` Martin v. Loewis
0 siblings, 1 reply; 2+ messages in thread
From: tmwg-gcc @ 2000-06-08 11:59 UTC (permalink / raw)
To: gcc
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?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Linux ELF g++ weak symbol for destructor
2000-06-08 11:59 Linux ELF g++ weak symbol for destructor tmwg-gcc
@ 2000-06-08 15:22 ` Martin v. Loewis
0 siblings, 0 replies; 2+ messages in thread
From: Martin v. Loewis @ 2000-06-08 15:22 UTC (permalink / raw)
To: tmwg-gcc; +Cc: gcc
> Is there another way to declare a destructor as a weak symbol?
How about
__asm__(".weak _._13thedestructor");
Regards,
Martin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-06-08 15:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-08 11:59 Linux ELF g++ weak symbol for destructor tmwg-gcc
2000-06-08 15:22 ` Martin v. Loewis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).