usefulness of UCLIBC_CTOR_DTOR ?

Mike Frysinger vapier at gentoo.org
Sun Aug 21 02:00:44 UTC 2011


On Friday, August 12, 2011 13:59:51 Rich Felker wrote:
> On Fri, Aug 12, 2011 at 01:53:23PM -0400, Lennart Sorensen wrote:
> > C libraries can have constructors and destructors too.
> 
> No they cannot. Those may be "GNU C" libraries but they are not C
> libraries.

libraries written in C can have constructors and deconstructors too.  see the 
init/fini gcc attributes.  this is part of the ELF spec and the language 
(C/C++/...) is irrelevant.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20110820/d6a23c27/attachment.asc>


More information about the uClibc mailing list