This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Linux ELF g++ weak symbol for destructor


   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?

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