summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/csu/alpha/crt0.c5
-rw-r--r--lib/csu/common_elf/crtbegin.c3
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/csu/alpha/crt0.c b/lib/csu/alpha/crt0.c
index 8140ac9f231..ee9c2806504 100644
--- a/lib/csu/alpha/crt0.c
+++ b/lib/csu/alpha/crt0.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crt0.c,v 1.4 2001/01/25 05:37:20 art Exp $ */
+/* $OpenBSD: crt0.c,v 1.5 2001/02/03 23:08:41 art Exp $ */
/* $NetBSD: crt0.c,v 1.1 1996/09/12 16:59:02 cgd Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: crt0.c,v 1.4 2001/01/25 05:37:20 art Exp $";
+static char rcsid[] = "$OpenBSD: crt0.c,v 1.5 2001/02/03 23:08:41 art Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdlib.h>
@@ -97,7 +97,6 @@ __start(sp, cleanup, obj)
#endif
#ifndef ECOFF_COMPAT
- atexit(__fini);
__init();
#endif /* ECOFF_COMPAT */
diff --git a/lib/csu/common_elf/crtbegin.c b/lib/csu/common_elf/crtbegin.c
index 750af70c7b4..cef8f19c171 100644
--- a/lib/csu/common_elf/crtbegin.c
+++ b/lib/csu/common_elf/crtbegin.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crtbegin.c,v 1.3 2001/02/03 22:59:13 art Exp $ */
+/* $OpenBSD: crtbegin.c,v 1.4 2001/02/03 23:08:41 art Exp $ */
/* $NetBSD: crtbegin.c,v 1.1 1996/09/12 16:59:03 cgd Exp $ */
/*
@@ -92,6 +92,7 @@ __init()
__ctors();
}
+ atexit(__fini);
}
extern void __fini(void) __attribute__((section(".fini")));