summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-02-03 23:08:42 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-02-03 23:08:42 +0000
commit6f430d1c95b70fcf266acf783f98d00a65b83d8a (patch)
treefaa7220fce69974bb5889683e6779e8bc8f60623
parent343cb0f3225993dfdbfc208d36ac1d876842b6c3 (diff)
Schedule running of __fini in __init, not __start.
-rw-r--r--lib/csu/crtbegin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/csu/crtbegin.c b/lib/csu/crtbegin.c
index 750af70c7b4..cef8f19c171 100644
--- a/lib/csu/crtbegin.c
+++ b/lib/csu/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")));