CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2014/06/18 13:01:10

Modified files:
        lib/libc/stdlib: atexit.c atexit.h 
        regress/lib/libc/atexit: atexit_test.c 

Log message:
Always call atexit handlers as if they were registered with __cxa_atexit.
The extra argument doesn't hurt genuine atexit handlers and this fixes a
bug where we didn't provide the argument (effectively passing garbage) for
functions registered with __cxa_atexit in the main executable.

Pointed out by Dmitriy Ivanov <[email protected]> and Elliott Hughes
<[email protected]>.

ok matthew@

Reply via email to