summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2015-04-19 18:15:26 +0000
committerjoerg <joerg@NetBSD.org>2015-04-19 18:15:26 +0000
commitc3285774cdd90d8624c3098e2ff4dbd2faeef0ec (patch)
treecd935f5b53b059709826d76c640330225967c4c9 /lib/libc/stdlib
parent4935107ab059a2ad933e65c4fe6858578af0cc18 (diff)
Redo __aeabi_atexit by shuffling the arguments and dropping the code in
libstdc++.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/atexit.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/libc/stdlib/atexit.c b/lib/libc/stdlib/atexit.c
index e5ec35aa317..3636f1cee91 100644
--- a/lib/libc/stdlib/atexit.c
+++ b/lib/libc/stdlib/atexit.c
@@ -1,4 +1,4 @@
-/* $NetBSD: atexit.c,v 1.28 2015/04/18 21:44:31 joerg Exp $ */
+/* $NetBSD: atexit.c,v 1.29 2015/04/19 18:15:26 joerg Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: atexit.c,v 1.28 2015/04/18 21:44:31 joerg Exp $");
+__RCSID("$NetBSD: atexit.c,v 1.29 2015/04/19 18:15:26 joerg Exp $");
#endif /* LIBC_SCCS and not lint */
#include "reentrant.h"
@@ -136,7 +136,14 @@ __libc_atexit_init(void)
* http://www.codesourcery.com/cxx-abi/abi.html#dso-dtor
*/
#if defined(__ARM_EABI__) && !defined(lint)
-__strong_alias(__aeabi_atexit,__cxa_atexit);
+int
+__aeabi_atexit(void *arg, void (*func)(void *), void *dso);
+
+int
+__aeabi_atexit(void *arg, void (*func)(void *), void *dso)
+{
+ return __cxa_atexit(func, arg, dso);
+}
#endif
int