crtstuff.c (ON_EXIT): Delete empty macro definition.
* crtstuff.c (ON_EXIT): Delete empty macro definition. (__do_global_ctors_aux): Call atexit(), not ON_EXIT(). From-SVN: r29527
This commit is contained in:
parent
8d02813512
commit
451fbdf217
2 changed files with 7 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Sep 20 14:56:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* crtstuff.c (ON_EXIT): Delete empty macro definition.
|
||||
(__do_global_ctors_aux): Call atexit(), not ON_EXIT().
|
||||
|
||||
Mon Sep 20 15:25:35 1999 Nick Clifton <nickc@cygnus.com>
|
||||
|
||||
* c-decl.c (c_decode_option): Extend comment.
|
||||
|
|
|
@ -119,9 +119,6 @@ typedef void (*func_ptr) (void);
|
|||
|
||||
#include "gbl-ctors.h"
|
||||
|
||||
#ifndef ON_EXIT
|
||||
#define ON_EXIT(a, b)
|
||||
#endif
|
||||
#define STATIC
|
||||
|
||||
#endif /* OBJECT_FORMAT_ELF */
|
||||
|
@ -262,7 +259,7 @@ __do_global_ctors_aux (void) /* prologue goes in .init section */
|
|||
#endif
|
||||
asm (TEXT_SECTION_ASM_OP); /* don't put epilogue and body in .init */
|
||||
DO_GLOBAL_CTORS_BODY;
|
||||
ON_EXIT (__do_global_dtors, 0);
|
||||
atexit (__do_global_dtors);
|
||||
}
|
||||
|
||||
#endif /* OBJECT_FORMAT_ELF */
|
||||
|
@ -421,7 +418,7 @@ __do_global_ctors_aux (void) /* prologue goes in .text section */
|
|||
{
|
||||
asm (INIT_SECTION_ASM_OP);
|
||||
DO_GLOBAL_CTORS_BODY;
|
||||
ON_EXIT (__do_global_dtors, 0);
|
||||
atexit (__do_global_dtors);
|
||||
} /* epilogue and body go in .init section */
|
||||
|
||||
#ifdef FORCE_INIT_SECTION_ALIGN
|
||||
|
|
Loading…
Add table
Reference in a new issue