OSDN Git Service

Making atexit weak does nothing for dynamicly linked apps. And for
authorEric Andersen <andersen@codepoet.org>
Thu, 23 Jan 2003 14:03:02 +0000 (14:03 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 23 Jan 2003 14:03:02 +0000 (14:03 -0000)
commit72c3d34323756a765ba4c635abf997c2c2584489
tree9e9389f70950e7c250a464c8672fb49c9319744f
parenta81c2218a2c2eaa35559ea83338f2c30140a4810
Making atexit weak does nothing for dynamicly linked apps.  And for
staticly linked apps it entirely prevents destructors from running
unless atexit is called for some other reason.  So if they enabled
ctor/dtor support we need to have a call to the real atexit for
dtors to work properly.  If people don't want the extra 4k or so
of junk in their static apps, they should leave ctor/dtor support
disabled.
 -Erik
libc/misc/internals/__uClibc_main.c